Linux services
11.18'24
systemctl
基本语法
systemctl <command> <service-name>
查看状态
systemctl status <service-name>
开机自动启动、取消自动启动
systemctl enable <service-name>
systemctl disable <service-name>
手动启动、停止、重启
systemctl start <service-name>
systemctl stop <service-name>
systemctl restart <service-name>
重新加载服务配置
systemctl reload <service-name>
Ref: https://phoenixnap.com/kb/start-stop-restart-linux-services
📖