小编Ler*_*kes的帖子

Systemctl:找出哪些命令适用于服务

如何使用 systemctl 找出哪些命令适用于服务?

# systemctl reload nagios.service
failed to reload nagios.service: Job type reload is not applicable for unit nagios.service.
Run Code Online (Sandbox Code Playgroud)

使用 init.d,您可以在没有命令的情况下运行脚本并查看适用命令的使用信息:

# /etc/init.d/nagios 
Usage: /etc/init.d/nagios {start|stop|status|restart|condrestart|try-restart|reload|force-reload|configtest}
Run Code Online (Sandbox Code Playgroud)

systemd systemctl centos7

10
推荐指数
1
解决办法
2万
查看次数

标签 统计

centos7 ×1

systemctl ×1

systemd ×1