全部博文(370)
分类:
2011-05-02 00:10:15
2. # rpm -ivh vsftpd*
3. # chmod 777 /var/ftp/pub
4. 拷贝光盘内容到/var/ftp/pub目录下,保留Server,VT,Cluster,ClusterStorage四个文件夹
5. # cd /var/ftp/pub/Server
6. # cp comps-rhel5-server-core.xml /root
7. # rm -rf repodata/
8. # createrepo -g /root/comps-rhel5-server-core.xml .
9. # cd ../Cluster
10. # cp repodata/comps-rhel5-cluster.xml /root
11. # rm -rf repodata/
12. # createrepo -g /root/comps-rhel5-cluster.xml .
13. # cd ../VT
14. # cp repodata/comps-rhel5-vt.xml /root
15. # rm -rf repodata/
16. # createrepo -g /root/comps-rhel5-vt.xml .
17. # cd ../ClusterStorage
18. # cp repodata/comps-rhel5-cluster-st.xml /root
19. # rm -rf repodata/
20. # createrepo -g /root/comps-rhel5-cluster-st.xml .
21. # cd /etc/yum.repos.d/
22. # cp rhel-debuginfo.repo yum.repo
23. # vim yum.repo
[Server]
name=Red Hat Enterprise Linux Server
baseurl=file:///var/ftp/pub/Server
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[VT]
name=Red Hat Enterprise Linux VT
baseurl=file:///var/ftp/pub/VT
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[Cluster]
name=Red Hat Enterprise Linux Cluster
baseurl=file:///var/ftp/pub/Cluster
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[ClusterStorage]
name=Red Hat Enterprise Linux Server
baseurl=file:///var/ftp/pub/ClusterStorage
enabled=1
gpgcheck=0
2.客户端配置
# vi /etc/yum.repos.d/yum.repo
[Server]
name=Red Hat Enterprise Linux Server
baseurl=ftp://192.168.0.254/pub/Server
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[VT]
name=Red Hat Enterprise Linux VT
baseurl=ftp://192.168.0.254/pub/VT
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[Cluster]
name=Red Hat Enterprise Linux Cluster
baseurl=ftp://192.168.0.254/pub/Cluster
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[ClusterStorage]
name=Red Hat Enterprise Linux Server
baseurl=ftp://192.168.0.254/pub/ClusterStorage
enabled=1
gpgcheck=0
# yum list