[root@localhost ~]#mkdir /rleh5
[root@localhost ~]#cp -R /mnt/dvd/Server /rhel5
[root@localhost rleh5]# cp /mnt/dvd/RPM-GPG-KEY-RedHat-release Server
[root@localhost ~]# yum-arch /rleh5/Server
……
ignoring bad rpm: kde-i18n-Norwegian-Nynorsk-3.5.4-1.noarch.rpm
Digesting rpms 100 % complete: yum-aliases-1.1.10-9.el5.noarch.rpmError opening rpm
yum-aliases-1.1.10-9.el5.noarch.rpm - error public key not available
ignoring bad rpm: yum-aliases-1.1.10-9.el5.noarch.rpm
Total: 2223
Used: 0
Src: 0
Writing header.info file
……
ignoring bad rpm: kde-i18n-Norwegian-Nynorsk-3.5.4-1.noarch.rpm
Digesting rpms 100 % complete: yum-aliases-1.1.10-9.el5.noarch.rpmError opening rpm
yum-aliases-1.1.10-9.el5.noarch.rpm - error public key not available
ignoring bad rpm: yum-aliases-1.1.10-9.el5.noarch.rpm
Total: 2223
Used: 0
Src: 0
Writing header.info file
Mayb show error, ignore!
[root@localhost ~]# createrepo /rleh5/Server
2223/2223 - yum-aliases-1.1.10-9.el5.noarch.rpm m
Saving Primary metadata
Saving file lists metadata
Saving other metadata
2223/2223 - yum-aliases-1.1.10-9.el5.noarch.rpm m
Saving Primary metadata
Saving file lists metadata
Saving other metadata
Install apache
[root@localhost rleh5]# cd /etc/httpd/conf
[root@localhost conf]# vi httpd.conf
DocumentRoot "/rleh5"
<Directory "/rleh5">
[root@localhost conf]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 291 of /etc/httpd/conf/httpd.conf:
Invalid command 'rlehrlehrlehrlehrlehrlehrleh5#', perhaps misspelled or defined by a
module not included in the server configuration [FAILED]
[root@localhost conf]# vi httpd.conf
[root@localhost conf]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: [ OK ]
[root@localhost conf]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@localhost conf]# vi httpd.conf
DocumentRoot "/rleh5"
<Directory "/rleh5">
[root@localhost conf]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 291 of /etc/httpd/conf/httpd.conf:
Invalid command 'rlehrlehrlehrlehrlehrlehrleh5#', perhaps misspelled or defined by a
module not included in the server configuration [FAILED]
[root@localhost conf]# vi httpd.conf
[root@localhost conf]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: [ OK ]
[root@localhost conf]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
