要查看系统服务,可以使用以下命令:
- systemctl list-unit-files:列出所有的系统服务和其状态(启用或禁用)。
- systemctl list-units:列出当前正在运行的服务。
- systemctl status [service_name]:查看特定服务的状态和信息。
- service [service_name] status:另一种查看特定服务状态的方法。
- ps aux | grep [service_name]:查看特定服务的进程信息。
- /etc/init.d/[service_name] status:查看传统的init脚本服务的状态。
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>