更新 readme.md

This commit is contained in:
haotian 2025-07-29 03:37:34 +00:00
parent 20385f1b7c
commit e5694693fb

View File

@ -1,3 +1,18 @@
# 通用流程
- 复制自启动文件
- sudo cp xxxx.service /etc/systemd/system/
- 启动服务
- sudo systemctl start xxxx.service 注: .service可以不加, xxxx为我们复制的文件名
- 停止服务
- sudo systemctl stop xxxx
- 重启服务
- sudo systemctl restart xxxx.service
- 查看服务状态
- sudo systemctl status xxxx.service
- 设置服务开机自启
- sudo systemctl enable xxxx.service
- 取消服务开机自启
- sudo systemctl disable xxxx.service