如果无法直接访问外网,则需要配置网络代理。
1
vim /etc/profile
1 2 3
export http_proxy="http://用户名:密码@代理IP地址:代理端口" export https_proxy=$http_proxy export no_proxy=127.0.0.1,.huawei.com,localhost,local,.local
source /etc/profile