2.安装程序
插入光盘2
#mount /dev/cdrom
#cd /media/cdrom/RedHat/RPMS
# rpm -ivh httpd-2.0.52-19.ent.i386.rpm
warning: httpd-2.0.52-19.ent.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
error: Failed dependencies:
httpd-suexec is needed by httpd-2.0.52-19.ent.i386
libaprutil-0.so.0 is needed by httpd-2.0.52-19.ent.i386
Suggested resolutions:
apr-util-0.9.4-21.i386.rpm
httpd-suexec-2.0.52-19.ent.i386.rpm
系统提示需要先装httpd-suexec-2.0.52-19.ent.i386.rpm
# rpm -ivh httpd-suexec-2.0.52-19.ent.i386.rpm
warning: httpd-suexec-2.0.52-19.ent.i386.rpm: V3 DSA signature: NOKEY, key ID de
error: Failed dependencies:
httpd = 2.0.52-19.ent is needed by httpd-suexec-2.0.52-19.ent.i386
Suggested resolutions:
httpd-2.0.52-19.ent.i386.rpm
系统又提示需要先装httpd-2.0.52-19.ent.i386.rpm
不管那么多,加上aid参数(add suggested packages to transaction)总算安装成功:
#rpm -ivh --aid httpd-2.0.52-19.ent.i386.rpm
再装上手册:
#rpm -ivh httpd-manual-2.0.52-19.ent.i386.rpm
3、配置
#vi /etc/httpd/conf/httpd.conf
找到"Listen"这节,将其改为:
Listen 192.168.1.1:80
#Listen 80
4、运行
#service httpd start
Starting httpd: OK ]
此时可在Windows下浏览,如无意外则应该出现Red Hat Enterprise Linux Test Page,表明Apache正常运行。
|
文件: |
apache.rar |
大小: |
0KB |
下载: |
下载 | |
阅读(1421) | 评论(0) | 转发(0) |