# 查看所有服务状态(按 q 退出)
systemctl list-units

# 查看所有服务自启设置(按 q 退出)
systemctl list-unit-files

# 将服务设为开机自启
systemctl enable service

# 启动服务
systemctl start service

# 停止服务
systemctl stop service

# 查看服务状态
systemctl status service

# 重启服务
systemctl restart service

# 重载配置
systemctl stop service

# 将服务设为开机自启
systemctl enable service

# 禁用服务开机自启
systemctl disable service

标签: none

添加新评论