Hello, dear friends, today I'm going to share with you some tips about setting up a global proxy server for Linux, which is a great tool for you to swim in the online world.
Setting up a global proxy server for linux
First, we're going to open the terminal, as if it were a door to the depths of the web, and type in the following command:
"`shell
sudo vi /etc/profile
“`
Then add the following lines of code to the open document:
"`shell
export http_proxy=http://your_proxy_server:port
export https_proxy=https://your_proxy_server:port
export ftp_proxy=ftp://your_proxy_server:port
export no_proxy=localhost,127.0.0.0/8,192.168.0.0/16
“`
Remember to replace "your_proxy_server" with the address of the proxy server you actually use and "port" with the port number. Save the file and exit.
Next, we also need to execute the following commands to make the configuration take effect:
"`shell
source /etc/profile
“`
In this way, we have successfully set up a global proxy server in the Linux system, which is equivalent to wearing a cloak of invisibility in the network world, allowing you to browse the Web, download files can be more unimpeded Oh.
centos setup global proxy
Setting up a global agent on a Centos system is also a matter of minutes, starting with the same opening of a terminal and typing the following command:
"`shell
sudo vi /etc/environment
“`
In the opened file, add a line of configuration information:
"`shell
http_proxy=http://your_proxy_server:port
https_proxy=https://your_proxy_server:port
ftp_proxy=ftp://your_proxy_server:port
no_proxy=localhost,127.0.0.0/8,192.168.0.0/16
“`
Again, remember to replace it with the address and port number of the proxy server you're actually using, then save and exit.
Finally, execute the following command to make the configuration take effect:
"`shell
source /etc/environment
“`
Well, doesn't it feel like putting a cyber protection suit on your computer? What a wonderful feeling to be able to move freely in the cyber world as you wish.
In this mysterious online world, setting up a global proxy is like adding an invisibility cloak to your computer, making it easier for you to browse the web and download files. I hope my little secret can bring you a little surprise, so that you can roam around the network world without any obstacles!