sudo apt update && sudo apt upgrade
(Debian/Ubuntu)或 sudo yum update -y
(CentOS)确保系统及软件包为最新版本。/etc/sysctl.conf
,添加或修改以下参数以优化网络和内存性能:net.ipv4.tcp_tw_reuse = 1 net.ipv4.tcp_fin_timeout = 30 vm.swappiness = 10
执行 sudo sysctl -p
使配置生效。systemctl list-unit-files --type=service
查看并禁用不需要的服务,如 NetworkManager
(若无需图形网络管理)。~/.config/Postman
下的 cache
相关文件夹。newman
命令行工具执行集合,适合自动化测试场景。