linux下httpd的安装
说明
名称栏目:linux下httpd的安装
文章地址:http://scyanting.com/article/jgsdpc.html
-----------先使用rpm -qa查询当下系统是否具有httpd包
-----------有?直接service httpd start开启服务
-----------没有?下载or上传包,然后,rpm -ivh xxx 安装
有
---------查询看有没有
[root@sink ~]# rpm -qa httpd
httpd-2.2.3-6.el5
--------有,系统已将安装上了httpd,直接
[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 ]
没有
--------查询看看有没有
[root@sink ~]# rpm -qa httpd
...
---------------没有,那么,首先创建上传目录,再rz上传软件包
[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 soft]# ls
httpd-2.2.3-6.el5.x86_64.rpm
---------find路径
[root@sink ~]# find / -name '*httpd-2.2.3-6.el5*'
/soft/httpd-2.2.3-6.el5.x86_64.rpm
---------嗯,没错,那么rpm -ivh xxx 直接安装
[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%]
--------安装好了,直接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的软件包就得自己网上下载了这里就不提供资源了
-----------有?直接service httpd start开启服务
-----------没有?下载or上传包,然后,rpm -ivh xxx 安装
有
---------查询看有没有
[root@sink ~]# rpm -qa httpd
httpd-2.2.3-6.el5
--------有,系统已将安装上了httpd,直接
[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 ]
没有
--------查询看看有没有
[root@sink ~]# rpm -qa httpd
...
---------------没有,那么,首先创建上传目录,再rz上传软件包
[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到soft目录下面,ls确定一下[root@sink soft]# ls
...
[root@sink soft]#rz
[root@sink soft]# ls
httpd-2.2.3-6.el5.x86_64.rpm
---------find路径
[root@sink ~]# find / -name '*httpd-2.2.3-6.el5*'
/soft/httpd-2.2.3-6.el5.x86_64.rpm
---------嗯,没错,那么rpm -ivh xxx 直接安装
[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%]
--------安装好了,直接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的软件包就得自己网上下载了这里就不提供资源了
名称栏目:linux下httpd的安装
文章地址:http://scyanting.com/article/jgsdpc.html