mirror of
https://gitee.com/callmer/pve_toss_notes.git
synced 2026-08-31 05:52:52 +08:00
优化服务创建命令
This commit is contained in:
+1
-8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user