提升Debian Minimal性能可从以下方面入手:
sudo apt update && sudo apt upgrade
更新软件包。sudo apt autoremove
和 sudo apt clean
清理无用软件包和缓存。/etc/sysctl.conf
,调整文件描述符限制、TCP窗口大小等参数,执行 sudo sysctl -p
生效。sudo systemctl disable [服务名]
。systemctl list-units --type=service --state=running
查看并优化启动项。noatime
挂载选项减少磁盘I/O。net.ipv4.tcp_tw_reuse
)。top/htop
监控资源占用,定位性能瓶颈。注意:修改前建议备份配置文件,部分操作需重启生效。