Chinaunix首页 | 论坛 | 博客
  • 博客访问: 304153
  • 博文数量: 67
  • 博客积分: 2010
  • 博客等级: 大尉
  • 技术积分: 690
  • 用 户 组: 普通用户
  • 注册时间: 2005-03-27 10:27
文章分类

全部博文(67)

文章存档

2007年(11)

2006年(42)

2005年(14)

我的朋友

分类: LINUX

2006-07-08 20:51:46


新手入门之Redhat EL4+Apache
http://enjoy48.cublog.cn

1、查看环境
#rpm -qa|grep httpd
得知系统默认没有安装httpd服务
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) |
给主人留下些什么吧!~~