mirror of
https://gitee.com/callmer/pve_toss_notes.git
synced 2026-08-31 05:52:52 +08:00
更新系统配置
This commit is contained in:
+2
-2
@@ -301,13 +301,13 @@ $ editor /etc/apt/apt.conf.d/20auto-upgrades
|
|||||||
|
|
||||||
清空当前全部配置项后,输入以下内容,并保存。
|
清空当前全部配置项后,输入以下内容,并保存。
|
||||||
|
|
||||||
配置文件中,用来控制更新周期的参数为 `APT::Periodic::Unattended-Upgrade` ,`5` 表示更新周期为 `5` 天。
|
配置文件中,用来控制更新周期的参数为 `APT::Periodic::Unattended-Upgrade` ,`10` 表示更新周期为 `10` 天。
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
## 系统更新周期配置项
|
## 系统更新周期配置项
|
||||||
|
|
||||||
APT::Periodic::Update-Package-Lists "1";
|
APT::Periodic::Update-Package-Lists "1";
|
||||||
APT::Periodic::Unattended-Upgrade "5";
|
APT::Periodic::Unattended-Upgrade "10";
|
||||||
APT::Periodic::AutocleanInterval "1";
|
APT::Periodic::AutocleanInterval "1";
|
||||||
APT::Periodic::CleanInterval "1";
|
APT::Periodic::CleanInterval "1";
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -210,7 +210,7 @@ $ sudo systemctl stop dnsmasq.service
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
## 下载 SmartDNS 安装包
|
## 下载 SmartDNS 安装包
|
||||||
$ curl -LR https://github.com/pymumu/smartdns/releases/download/Release48.2/smartdns.1.2026.06.28-1614.x86_64-linux-all.tar.gz | tar -xz -C /tmp
|
$ curl -LR https://github.com/pymumu/smartdns/releases/download/Release48.4/smartdns.1.2026.08.05-0921.x86_64-linux-all.tar.gz | tar -xz -C /tmp
|
||||||
|
|
||||||
## 安装 SmartDNS
|
## 安装 SmartDNS
|
||||||
$ sudo /tmp/smartdns/install -i
|
$ sudo /tmp/smartdns/install -i
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
# This configuration file is customized by fox,
|
||||||
|
# Optimize for X550-T1: advertise 100M / 1G / 2.5G / 5G / 10G.
|
||||||
|
|
||||||
|
iface nic1 inet manual
|
||||||
|
pre-up /usr/sbin/ethtool -s nic1 autoneg on advertise 0x1800000001028 || true
|
||||||
|
|
||||||
Reference in New Issue
Block a user