Home > Article > Operation and Maintenance > How to check what services are available in Linux
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.
#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.
Method 2. Use the chkconfig command
chkconfig --list
to list all services of the system
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
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
Method 4: Enter the init.d
directory to view
cd /etc/init.d
Method 5: Use netstat command
netstat -lntp
Method 6 , use the ntsysv command
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!