阅读量:257
在Ubuntu系统上设置Postman代理主要分为两种方式:通过系统代理设置和使用Postman应用程序设置。以下是详细的步骤:
通过系统代理设置设置系统代理环境变量:
export http_proxy=http://your_proxy_server:port
export https_proxy=http://your_proxy_server:port
将your_proxy_server和port替换为你的代理服务器的地址和端口。
使环境变量生效:
source ~/.bashrc
或者
source ~/.bash_profile
在Postman中配置代理:设置完成后,点击"Save"按钮以保存更改。通过Postman应用程序设置打开Postman应用程序。转到右上角的设置图标(齿轮形状),然后点击"Settings"。在设置页面左侧导航栏中,选择"General"。向下滚动到"Proxies"部分。在此处,您可以设置以下代理选项:设置完成后,点击"Save"按钮以保存更改。
通过以上步骤,您可以在Ubuntu系统上成功为Postman设置代理。请根据您的具体需求选择最适合您的设置方法。