1. 程式人生 > >CentOS7 通過代理上網

CentOS7 通過代理上網

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