How to check what services are available in Linux

青灯夜游
Release: 2022-04-13 17:04:12
Original
58488 people have browsed it

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
Copy after login

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
Copy after login

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
Copy after login

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
Copy after login

How to check what services are available in Linux

Method 5: Use netstat command

netstat -lntp
Copy after login

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!

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!