Linux uses a proxy server to go online

1. Install server proxy software: CCProxy

2. Edit the Linux environment variable configuration

vim ~/.bash_profile

[Add the server proxy address at the end, http and https proxy addresses are written the same, ip and port are obtained from the settings you run after installing the server proxy software]

#http proxy
export http_proxy=http://100.100.100.98:809 
#https proxy
export https_proxy=http://100.100.100.98:809

3. Reload the environment variable configuration file

source ~/.bash_profile

4. Test whether you can surf the Internet, visit Baidu

curl https://www.baidu.com

5. You can go online normally and complete.

Published 266 original articles · praised 17 · 10,000+ views

Guess you like

Origin blog.csdn.net/qq_18671415/article/details/105372657
Recommended