Installation of httpd under linux
description
--------------First use rpm -qa to query whether the current system has httpd package
- Yes? Direct service httpd start Start service
- No? Download or upload package, then, rpm -ivh xxx install
have
---------
[root@sink ~]# rpm -qa httpd
httpd-2.2.3-6.el5
-----Yes, the system has been installed on httpd, directly
[root@sink ~]# service httpd start
Starting httpd: httpd: Could not reliably determine the server's fully
qualified domain name, using 127.0.0.1 for ServerName
[ OK ]
no
--------
[root@sink ~]# rpm -qa httpd
...
---------------
[root@sink ~]# mkdir /soft
[root@sink ~]# ls /
bin dev etc lib lost+found misc net proc sbin soft sys tmp usr
boot dsk1 home lib64 media mnt opt root selinux srv tftpboot u01 var
[root@sink ~]# cd /soft/
[root@sink soft]# ls
...
[root@sink soft]#rz
-------cd to soft directory below, ls confirm
[root@sink soft]# ls
httpd-2.2.3-6.el5.x86_64.rpm
---------
[root@sink ~]# find / -name '*httpd-2.2.3-6.el5*'
/soft/httpd-2.2.3-6.el5.x86_64.rpm
------Well, yes, then rpm -ivh xxx is installed directly
[root@sink soft]# rpm -ivh httpd-2.2.3-6.el5.x86_64.rpm
warning: httpd-2.2.3-6.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:httpd ########################################### [100%]
--------Once installed, you can use it directly by service httpd start.
Starting httpd: httpd: Could not reliably determine the server's fully
qualified domain name, using 127.0.0.1 for ServerName
[ OK ]
PS: httpd software package has to be downloaded from the Internet itself, so there are no resources provided here.