优化服务创建命令

This commit is contained in:
CallMeR
2026-08-13 19:00:02 +08:00
parent 079898b167
commit 88e6f8b867
2 changed files with 2 additions and 16 deletions
+1 -8
View File
@@ -191,7 +191,7 @@ CPUPOWER_STOP_OPTS="frequency-set -g performance"
```bash
## 创建 cpupower.service 配置文件
$ editor /etc/systemd/system/cpupower.service
$ systemctl edit --force --full cpupower.service
```
在服务配置文件中输入以下内容,并保存。
@@ -217,13 +217,6 @@ WantedBy=multi-user.target
```
由于修改了服务项,需要执行以下命令进行重载。
```bash
## 服务重载
$ systemctl daemon-reload
```
执行以下命令让 `cpupower` 服务立即启动并置为开机自启状态。
```bash