说明
-----------先使用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 ~]# cd /soft/
[root@sink soft]# ls
...
[root@sink soft]#rz
文章标题:linux下httpd的安装-创新互联
路径分享:
http://bjjierui.cn/article/gggch.html