命令语法
systemctl restart注意
重启服务
示例
$ sudo systemctl restart nginx
systemctl restart 用法说明
systemctl restart 是「服务与电源」分类下的常用命令,作用是:重启服务。
典型用法如下:sudo systemctl restart nginx。你可以复制到终端直接运行,或查看下方同组的相关命令。
常见问题解答
systemctl restart 是什么?
systemctl restart 用于重启服务,属于「服务与电源」相关命令。
systemctl restart 怎么用?
在终端执行
sudo systemctl restart nginx 即可,具体参数请按实际环境调整。还有哪些相关命令?
「服务与电源」分类下还有 13 条相关命令,见下方「相关命令」。