想要改进这个问题? Update the question所以它是on-topic堆栈溢出。
关闭 9 年前。
如何设置“curl”在终端中永久使用代理服务器?
最佳答案
您可以在 ~/.bashrc 文件中创建别名:
alias curl="curl -x <proxy_host>:<proxy_port>"
另一种解决方案是使用(可能是更好的解决方案)~/.curlrc
文件(如果它不存在则创建它):
proxy = <proxy_host>:<proxy_port>
https://stackoverflow.com/questions/7559103/