Name role server (RHEL5.5) server 1. Prepare the software warehouse file (YUM server) (1) configure the NIC and mount the CD [root @ localhost ~] # Servicenetworkrestart: & n
| Name |
Role |
| Server (RHEL5.5) |
Server |
1 Prepare the software warehouse file (YUM Server)(1) configure the NIC and mount the disc [root @ localhost ~] # Service network restart:
[OK] The loopback interface is displayed:
[OK] eth0:
[OK] [root @ localhost ~] # Mount/dev/cdrom/media/mount: block device/dev/cdrom is write-protected, mounting read-only (2) install the vsftp service and grant 777 permissions, copy all copies with directories in media and retain the permission to [root @ localhost ~] Under/var/ftp/pub. # Cd/media/Server/[root @ localhost Server] # rpm-ivh vsftp * [root @ localhost Server] # chmod 777/var/ftp/pub/
//Grant 777 permissions to [root @ localhost Server] # cp-rp/media/*/var/ftp/pub/(3) install the createerepo file [root @ localhost ~] # Cd/media/Server/[root @ localhost Server] # rpm-ivh createrepo-0.4.11-3.el5.noarch.rpm (4) re-adjust the YUM repository file [root @ localhost Server] # cd/var/ftp/pub/[root @ localhost pub] # ls
Cluster README-te.html RELEASE-NOTES-U5-en ClusterStorage README-zh_CN.html RELEASE-NOTES-U5-en.htmlREADME-ru.html
RELEASE-NOTES-U5-as.html ServerREADME-si.html
RELEASE-NOTES-U5-bn.html TRANS. TBLREADME-ta.html
RELEASE-NOTES-U5-de.html VT[Root @ localhost pub] # cd Server/
//Since RHEL5 has four libraries, after all the paths are modified, you need to re-adjust the file locations of these four libraries [root @ localhost Server] # cd .. [root @ localhost pub] # createrepo-g Server/repodata/comps-rhel5-server-core.xml./
[Root @ localhost pub] # createrepo-g VT/repodata/comps-rhel5-vt.xml. /[root @ localhost pub] # createrepo-g Cluster/repodata/comps-rhel5-cluster.xml. /[root @ localhost pub] # createrepo-g ClusterStorage/repodata/comps-rhel5-cluster-st.xml. /view the total number of generated data files [root @ localhost pub] # ls-lhrepodata/total 13M-rw-r -- r -- 1 root 106 K 04-19 comps-rhel5-cluster-st.xml-rw-r -- r -- 1 root 101 K 04-19 com Ps-rhel5-cluster.xml-rw-r -- r -- 1 root 1006 K 04-19 comps-rhel5-server-core.xml-rw-r -- r -- 1 root 101 K 04-19 comps-rhel5-vt.xml-rw-r -- r -- 1 root 2.7 M 04-19 filelists.xml.gz -rw-r -- 1 root 7.6 M 04-19 other.xml.gz-rw-r -- 1 root 858 K 04-19 primary.xml.gz-rw-r -- r -- 1 root 1.2 K 04-19 repomd. xml enables vsftpd to automatically start upon startup [root @ localhost ~] # Chkconfig vsftpd on [root @ localhost ~] # Service vsftpd start verification [root @ localhost ~] # Ftp 192.168.1.1Connected to 192.168.1.1.220 (vsFTPd 2.0.5) 530 Please login with USER and PASS.530 Please login with USER and PASS. KERBEROS_V4 rejected as an authentication typeName (192.168.1.1: root): ftp331 Please specify the password. password: 230 Login successful. remote system type is UNIX. using binary mode to transfer files. ftp> dir227 Entering Passive Mode (192,168, 192,162, 150) Here comes the directory listing. drwxrwxrwx
9 0 0 4096 Apr 19 04:28 pub226 Directory send OK.