Archived
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
93d6fc0b80 | ||
|
|
f3ca708e55 | ||
|
|
41d08376da | ||
|
|
98b6d79cfe | ||
|
|
904502d9da | ||
|
|
a1eb073c74 |
+1
-1
@@ -180,7 +180,7 @@ apt install cpufrequtils
|
||||
apt install intel-microcode (amd64-microcode)
|
||||
```
|
||||
|
||||
其中 `fail2ban` 和 `unattended-upgrades` 为两个服务,后续会对其进行配置。
|
||||
其中 `unattended-upgrades` 为系统自动更新服务,后续会对其进行配置。
|
||||
|
||||
`cpufrequtils` 为 CPU 调度器的配置工具,后续会对 CPU 调度算法进行调整。
|
||||
|
||||
|
||||
+4
-3
@@ -215,10 +215,10 @@ sudo systemctl restart dhcpcd.service
|
||||
|
||||
由于该 Debian 虚拟机模板将用于克隆内网 DNS 服务器,因此需要调整一部分系统内核参数来简单优化性能。
|
||||
|
||||
执行以下命令对 `sysctl` 的配置文件进行修改:
|
||||
使用 `nano` 编辑器编辑 **内核参数** 配置文件,执行以下命令:
|
||||
|
||||
```bash
|
||||
## 调整系统内核参数
|
||||
## 编辑 内核参数 配置文件
|
||||
sudo nano /etc/sysctl.d/99-sysctl.conf
|
||||
```
|
||||
|
||||
@@ -238,9 +238,9 @@ net.ipv4.tcp_congestion_control = bbr
|
||||
|
||||
net.ipv4.conf.all.log_martians = 1
|
||||
|
||||
net.ipv4.icmp_ratelimit = 100
|
||||
net.ipv4.igmp_max_memberships = 100
|
||||
|
||||
net.ipv4.tcp_challenge_ack_limit = 1000
|
||||
net.ipv4.tcp_fin_timeout = 30
|
||||
net.ipv4.tcp_keepalive_time = 120
|
||||
net.ipv4.tcp_max_orphans = 4096
|
||||
@@ -249,6 +249,7 @@ net.ipv4.tcp_syncookies = 1
|
||||
|
||||
net.ipv6.conf.all.use_tempaddr = 0
|
||||
net.ipv6.conf.default.use_tempaddr = 0
|
||||
|
||||
```
|
||||
|
||||
保存该配置文件后,重启系统或者执行以下命令让配置生效:
|
||||
|
||||
@@ -11,9 +11,9 @@ net.ipv4.tcp_congestion_control = bbr
|
||||
|
||||
net.ipv4.conf.all.log_martians = 1
|
||||
|
||||
net.ipv4.icmp_ratelimit = 100
|
||||
net.ipv4.igmp_max_memberships = 100
|
||||
|
||||
net.ipv4.tcp_challenge_ack_limit = 1000
|
||||
net.ipv4.tcp_fin_timeout = 30
|
||||
net.ipv4.tcp_keepalive_time = 120
|
||||
net.ipv4.tcp_max_orphans = 4096
|
||||
@@ -22,3 +22,4 @@ net.ipv4.tcp_syncookies = 1
|
||||
|
||||
net.ipv6.conf.all.use_tempaddr = 0
|
||||
net.ipv6.conf.default.use_tempaddr = 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user