mirror of
https://gitee.com/callmer/pve_toss_notes.git
synced 2026-09-01 06:22: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
|
||||
|
||||
+1
-8
@@ -656,7 +656,7 @@ $ sudo chattr +i /usr/local/bin/tailscale-nic-optim
|
||||
|
||||
```bash
|
||||
## 创建 tailscale-nic-optim.service 配置文件
|
||||
$ sudo editor /etc/systemd/system/tailscale-nic-optim.service
|
||||
$ sudo systemctl edit --force --full tailscale-nic-optim.service
|
||||
```
|
||||
|
||||
在服务配置文件中输入以下内容,并保存。
|
||||
@@ -683,13 +683,6 @@ WantedBy=multi-user.target
|
||||
|
||||
```
|
||||
|
||||
由于修改了服务项,需要执行以下命令进行重载。
|
||||
|
||||
```bash
|
||||
## 服务重载
|
||||
$ sudo systemctl daemon-reload
|
||||
```
|
||||
|
||||
执行以下命令让 `tailscale-nic-optim` 服务立即启动并置为开机自启状态。
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user