Home  >  Article  >  Operation and Maintenance  >  How to check what services are available in Linux

How to check what services are available in Linux

青灯夜游
青灯夜游Original
2022-04-13 17:04:1258607browse

View method: 1. Use the "service --status-all" command to list all services in the system and display the running status; 2. Use the "chkconfig --list" command to list all services; 3. Use the "ps aux" command to view all processes in the system; 4. Use "ntsysv", etc.

How to check what services are available in Linux

#The operating environment of this tutorial: Red Hat Enterprise Linux 6.5 system, Dell G3 computer.

How to check what services the system has in Linux

Method 1: Use the service command

The service command is used to manage system services. Execute the following command to view the running status of all Linux services.

service --status-all

There are many output results, so some are intercepted. For example, to check whether the MySQL service is installed, you can search it from the listed information.

How to check what services are available in Linux

How to check what services are available in Linux

Method 2. Use the chkconfig command

chkconfig --list

to list all services of the system

How to check what services are available in Linux

You can use this command to find out whether a specific service is installed (provided you specify the name under which the service is running), such as MySQL, type the command: chkconfig --list mysql

How to check what services are available in Linux

Method 3: Use the ps command

ps command can view detailed information of all running processes in the system

ps aux

Execute the above command to view all processes in the system

How to check what services are available in Linux

Method 4: Enter the init.d directory to view

cd /etc/init.d

How to check what services are available in Linux

Method 5: Use netstat command

netstat -lntp

How to check what services are available in Linux

Method 6 , use the ntsysv command

How to check what services are available in Linux

Related recommendations: "Linux Video Tutorial"

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

Statement:
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