Linux如何启动停止Service
2021-10-28 本文已影响0人
CodingCode
- 查看service状态
$ systemctl status docker.service
- 启动service
$ sudo systemctl start docker.service
- 停止service
sudo systemctl start docker.service
- 查看是否自动重启
$ systemctl is-enabled docker.service
- 启动自动重启
$ sudo systemctl enable docker.service
- 关闭自动重启
$ sudo systemctl disable docker.service