Skip to content

Commit

Permalink
doc: update systemctl.md (#578)
Browse files Browse the repository at this point in the history
  • Loading branch information
loprx authored May 14, 2024
1 parent fe5f89b commit 5a574c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions command/systemctl.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ systemctl
```shell
systemctl start nfs-server.service . # 启动nfs服务
systemctl enable nfs-server.service # 设置开机自启动
systemctl enable nfs-server.service --now # 设置开机自启动,并立刻启动
systemctl disable nfs-server.service # 停止开机自启动
systemctl disable nfs-server.service --now # 停止开机自启动,并立刻停止
systemctl status nfs-server.service # 查看服务当前状态
systemctl restart nfs-server.service # 重新启动某服务
systemctl list-units --type=service # 查看所有已启动的服务
Expand Down

0 comments on commit 5a574c8

Please sign in to comment.