If the proxy server in the campus network is 192.168.0.1:3128, then set the proxy settings in the terminal and add the following to the file .bash_profile (in the root directory):
//------------------------
http_proxy=192.168.0.1:3128
ftp_proxy=192.168.0.1:3128
export http_proxy
export ftp_proxy
//---------------------
and then execute
source .bash_profile
Check if the setting is successful
[root@localhost ~]# echo $http_proxy
192.168.0.1:3128
[root@localhost ~]#
To test whether it is successful, use the wget download tool to test.
[root@localhost ~]# wget http://mdsx.wxedu.net/teacher/lulp/pic/04.mp3
--10:06:01-- http://mdsx.wxedu.net/teacher/lulp/pic/04.mp3
=> `04.mp3'
Connecting to 192.168.0.1:3128... Connected.
Proxy request sent, waiting for response... 200 OK, length:
4,701,622 [audio/mpeg]
100%[============>] 4,701,622 635.27K/s ETA 00:00
10:06:09 (584.74 KB/s) - `04.mp3' saved [4,701,622/4,701,622]
Note: The proxy server 192.168.0.1 should be set according to the specific conditions of your LAN. As you can see from the above, the test was successful.