CentOS 上 Postman 的网络配置指南
一 系统代理与桌面应用代理
export http_proxy=http://your-proxy-host:port
export https_proxy=http://your-proxy-host:port
export no_proxy=localhost,127.0.0.1,.example.com
source ~/.bashrc 或 source /etc/profile二 无头环境使用 Newman 的网络配置
sudo yum install -y nodejs npm
sudo npm install -g newman
http_proxy=http://your-proxy-host:port https_proxy=http://your-proxy-host:port \
newman run collection.json -e environment.json
三 常见问题与排查
source 使变量生效;在终端中 echo $http_proxy 验证