Ubuntu 系统优化三招
一、加速 DNS 解析(dnsmasq) 网页打开慢,通常是 DNS 解析耗时。用 dnsmasq 做本地 DNS 缓存: # 1. 安装 sudo apt-get install dnsmasq # 2. 编辑配置 sudo vi /etc/dnsmasq.conf # 找到 #resolv-file=,改为: resolv-file=/etc/resolv.dnsmasq.conf # 3. 复制当前 DNS 配置 sudo cp /etc/resolv.conf /etc/resolv.dnsmasq.conf # 4. 将系统 DNS 指向本地 sudo vi /etc/resolv.conf # 去掉原有的 nameserver,添加: nameserver 127.0.0.1 # 5. 防止 PPPoE 覆盖(如果用拨号上网) sudo vi /etc/ppp/peers/wvdial # 在 usepeerdns 前加 # # 6. 重启系统 sudo reboot 二、管理启动服务(sysv-rc-conf) 关闭不必要的启动服务,加快开机速度: ...