Skip to content

Commit 5a574c8

Browse files
authored
doc: update systemctl.md (#578)
1 parent fe5f89b commit 5a574c8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

command/systemctl.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ systemctl
2323
```shell
2424
systemctl start nfs-server.service . # 启动nfs服务
2525
systemctl enable nfs-server.service # 设置开机自启动
26+
systemctl enable nfs-server.service --now # 设置开机自启动,并立刻启动
2627
systemctl disable nfs-server.service # 停止开机自启动
28+
systemctl disable nfs-server.service --now # 停止开机自启动,并立刻停止
2729
systemctl status nfs-server.service # 查看服务当前状态
2830
systemctl restart nfs-server.service # 重新启动某服务
2931
systemctl list-units --type=service # 查看所有已启动的服务

0 commit comments

Comments
 (0)