1.安装服务器代理软件 :CCProxy
2.编辑Linux环境变量配置
vim ~/.bash_profile
[在末尾加上服务器代理地址,http和https代理地址都写一样的,ip和端口从你安装服务器代理软件后运行的设置中获取]
#http proxy
export http_proxy=http://100.100.100.98:809
#https proxy
export https_proxy=http://100.100.100.98:809
3.重新加载环境变量配置文件
source ~/.bash_profile
4.测试是否可以上网,访问百度
curl https://www.baidu.com
5.可以正常上网,完成。