How to view Linux services

(*-*)浩
Release: 2019-12-05 09:32:43
Original
3776 people have browsed it

How to view Linux services

1. ps aux or netstat -tlunp

ps is the process viewing command, netstat is the port viewing command, in Linux system , the service must have a process, so you can use the ps command to check the service running status. In addition, most Linux services are network services, so you can also check the service running status through the netstat command.                                                                                                                                           (Recommended learning: linux tutorial)

2. service service name status

For example, check the running status of the httpd Web service, Execute service httpd status, as shown in the following figure:

How to view Linux services

3, /sbin/service --status-all |grep "service name"

For example, to view the web service of httpd, execute /sbin/service --status-all |grep "httpd". As shown below.

How to view Linux services

4. chkconfig --list

For example, to view the httpd web service, execute chkconfig --list |grep "httpd" will do. As shown below.

How to view Linux services

The above is the detailed content of How to view Linux services. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template