1、工作中有时会遇到需要FQ下载软件的问题,这个时候就用到了正向代理。 2、正向代理服务器端的配置比较简单,这里不在重复说明,想了解的可以看作者的另一篇文章《nginx正向代理配置》,这里只对终端代理的配置进行说明。
bashexport proxy="http://10.20.56.32:8000"
export http_proxy=$proxy
export https_proxy=$proxy
export ftp_proxy=$proxy
export no_proxy="localhost, 127.0.0.1, ::1"
shellshell> unset http_proxy
shell> unset https_proxy
shell> unset ftp_proxy
shell> unset no_proxy
shellecho "proxy=http://10.20.57.32:8080/" >> /etc/yum.conf
bash添加php-ftpm关于env的如下配置,然后重启php-fpm服务。
env[http_proxy] = "http_proxy=http://1.1.1.1:8082"
env[https_proxy] = "https_proxy=http://1.1.1.1:8082"
env[no_proxy] = "a.test.com,127.0.0.1,2.2.2.2"
ini修改$HOME/.subversion/servers文件,在此文件的[global]段加上:
http-proxy-host = 192.168.1.1
http-proxy-port = 8080
http-proxy-username = 91donkey
http-proxy-password = 123456
shellcat /etc/squid/squid.conf http_access allow all http_port 8443 cache deny all
本文作者:丁一
本文链接:
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!