-----------先使用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
---------cd到soft目录下面,ls确定一下
[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的软件包就得自己网上下载了这里就不提供资源了
声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源:
创新互联