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刪除。