systemctl stop 命令详解

停止服务

命令语法
systemctl stop 注意
命令说明
停止服务
示例
$ sudo systemctl stop nginx
服务与电源相关命令

systemctl stop 用法说明

systemctl stop 是「服务与电源」分类下的常用命令,作用是:停止服务。

典型用法如下:sudo systemctl stop nginx。你可以查看本页上方同组的相关命令,或直接复制到终端运行。

常见问题解答

systemctl stop 是什么?
systemctl stop 用于停止服务,属于「服务与电源」相关命令。
systemctl stop 怎么用?
在终端执行 sudo systemctl stop nginx 即可,具体参数请按实际环境调整。
还有哪些相关命令?
服务与电源分类下还有 13 条相关命令,见本页上方「相关命令」。

同类工具