如何查看linux服务器是否启动

发布网友

我来回答

2个回答

热心网友

1、ps
aux
或netstat
-tlunp
ps是进程查看命令,netstat是端口查看命令,在Linux系统中,服务一定是有进程的,所以使用ps命令可以查看服务运行情况,另外,Linux服务多数是网络服务,所以通过netstat命令也可以查看服务运行状态。
2、service
服务名
status
比如查看httpd的Web服务的运行状态,执行service
httpd
status,如下图所示:
3、/sbin/service
--status-all
|grep
"服务名"
比如查看httpd的web服务,执行
/sbin/service
--status-all
|grep
"httpd"即可。如下图所示。
4、chkconfig
--list
比如查看httpd的web服务,执行
chkconfig
--list
|grep
"httpd"即可。如下图所示。

热心网友

1、ps
aux
或netstat
-tlunp

ps是进程查看命令,netstat是端口查看命令,在Linux系统中,服务一定是有进程的,所以使用ps命令可以查看服务运行情况,另外,Linux服务多数是网络服务,所以通过netstat命令也可以查看服务运行状态。
2、service
服务名
status
比如查看httpd的Web服务的运行状态,执行service
httpd
status,
3、/sbin/service
--status-all
|grep
"服务名"
比如查看httpd的web服务,执行
/sbin/service
--status-all
|grep
"httpd"即可。
4、chkconfig
--list
比如查看httpd的web服务,执行
chkconfig
--list
|grep
"httpd"即可。

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com