手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

RedHat Enterprise Linux 5.2安装yum服务器

[日期:2010-08-02] 来源:Linux社区  作者:wonitazansa1 [字体:大 中 小]

[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

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

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  ]
linux
相关资讯       redhat 
本文评论   查看全部评论 (1)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款
第 1 楼
* 邹安安 发表于 2010/9/10 0:48:00
谢谢你 ,看了你的我才终于把学LINUX中遇到最难的一关给过了。。。。 让我有了新 的信心学习下去