首页 > Web开发 > 详细

httpd基本命令

时间:2018-09-12 15:40:25      阅读:190      评论:0      收藏:0      [点我收藏+]

查看有没有安装包:

#rpm -ql httpd

不加l是查看安装包

 

#yum list installed

 

来查案安装过的包,  +  |grep httpd

#yum list installed | grep httpd

 

 

判断服务有没有起来

#systemctl status httpd

 

从进程上来看    是否有这样的进程

#ps aux | grep httpd

 

来查看有没有80的端口

#ss -tanmlp | grep httpd

 

关掉服务:1

#systemctl stop httpd

查看服务器状态

#systenctl status httpd

2

#sysremctl start httpd

#systemctl status httpd

 

另一种

#ps aux | grep httpd

#kill -9 前段号码

      

 

再来看看进程

failed挂起的状态   停止的状态  ==  关掉  

 

 

关掉以后没有端口号:

#systemctl stop httpd

#ss -tnmlp | grep httpd

此时没有端口号

查看端口号

#ss -tnmlp | grep httpd

技术分享图片

 

httpd基本命令

原文:https://www.cnblogs.com/Zxiaotian/p/9634944.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!