RHEL5下apache服务的rpm安装
login as: root
password:
Last login: Tue Nov 18 07:39:37 2008 from 192.168.0.2
[root@localhost ~]# rpm -qa |grep httpd
[root@localhost ~]# mount /dev/cdrom /mnt
mount: block device /dev/cdrom is write-protected, mounting read-only
[root@localhost ~]# rpm -ivh /mnt/Server/httpd-2.2.3-6.el5.i386.rpm
warning: /mnt/Server/httpd-2.2.3-6.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
libapr-1.so.0 is needed by httpd-2.2.3-6.el5.i386
libaprutil-1.so.0 is needed by httpd-2.2.3-6.el5.i386
[root@localhost ~]# rpm -ivh /mnt/Server/apr-1.2.7-11.i386.rpm
warning: /mnt/Server/apr-1.2.7-11.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:apr ########################################### [100%]
[root@localhost ~]# rpm -ivh /mnt/Server/postgresql-libs-8.1.4-1.1.i386.rpm
warning: /mnt/Server/postgresql-libs-8.1.4-1.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:postgresql-libs ########################################### [100%]
[root@localhost ~]# rpm -ivh /mnt/Server/apr-util-1.2.7-6.i386.rpm
warning: /mnt/Server/apr-util-1.2.7-6.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:apr-util ########################################### [100%]
[root@localhost ~]# rpm -ivh /mnt/Server/httpd-2.2.3-6.el5.i386.rpm
warning: /mnt/Server/httpd-2.2.3-6.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:httpd ########################################### [100%]
[root@localhost ~]# vi /etc/httpd/conf/httpd.conf
ServerName
PidFile run/httpd.pid
#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 120
#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive Off
Listen 80
DocumentRoot "/var/www/html"
[root@localhost ~]# service httpd start
Starting httpd: [ OK ]
[root@localhost ~]# ls
anaconda-ks.cfg index.htm install.log install.log.syslog
[root@localhost ~]# cp index.htm /var/www/html/index.html
- 最新评论