linux查看开启的服务

要查看Linux操作系统中正在运行的服务,可以使用以下命令:

  1. 使用systemctl命令
 
 

plaintextCopy code

systemctl list-units --type=service

  1. 使用service命令
 
 

plaintextCopy code

service --status-all

  1. 使用ps命令
 
 

plaintextCopy code

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

其中,"service-name"为要查看的服务名称。

猜你喜欢

转载自blog.csdn.net/ihateright/article/details/131350167