Linux使用代理服务器上网

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.可以正常上网,完成。

发布了266 篇原创文章 · 获赞 17 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/qq_18671415/article/details/105372657