Cmd Generator

systemctl

控制系统 systemd 服务管理器。

systemctl start

示例

# 启动服务
systemctl start nginx

# 停止服务
systemctl stop nginx

# 重启服务
systemctl restart nginx

# 重载配置(不重启)
systemctl reload nginx

# 启动并设置开机自启
systemctl enable --now nginx

Sponsors