Linux view opened services

To view running services in a Linux operating system, you can use the following command:

  1. Use the systemctl command
 
 

plaintextCopy code

systemctl list-units --type=service

  1. Use the service command
 
 

plaintextCopy code

service --status-all

  1. use the ps command
 
 

plaintextCopy code

ps -ef | grep -i "service-name"

Among them, "service-name" is the name of the service to be viewed.

Guess you like

Origin blog.csdn.net/ihateright/article/details/131350167