1.修改/etc/profile,增加以下内容
export http_proxy="http://10.5.3.9:80"
export https_proxy="http://10.5.3.9:80"
export ftp_proxy="http://10.5.3.9:80"
2.立刻生效
source /etc/profile
3.测试
curl http://2018.ip138.com/ic.asp
1.修改/etc/profile,增加以下内容
export http_proxy="http://10.5.3.9:80"
export https_proxy="http://10.5.3.9:80"
export ftp_proxy="http://10.5.3.9:80"
source /etc/profile
3.测试
curl http://2018.ip138.com/ic.asp
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。