语法:systemctl [command] [unit](配置的应用名称)
command | 解释 | 示例 |
start | 启动指定的unit | systemctl start nginx |
stop | 关闭指定的unit | systemctl stop nginx |
restart | 重启指定unit | systemctl restart nginx |
reload | 重载指定unit | systemctl reload nginx |
enable | 系统开机时自动启动指定unit,前提是配置文件中有相关配置 | systemctl enable nginx |
disable | 开机时不自动运行指定unit | systemctl disable nginx |
status | 查看指定unit当前运行状态 | systemctl status nginx |