Article title: Linux Terminal proxy settings. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
If the proxy server on the campus network is 192.168.0.1: 3128, set proxy settings on the terminal and on the file. Add:
//----------------------http_proxy=192.168.0.1:3128ftp_proxy=192.168.0.1:3128export http_proxyexport ftp_proxy//---------------------- |
Then execute
Check whether the setting is successful.
[root@localhost ~]# echo $http_proxy192.168.0.1:3128[root@localhost ~]# |
Run the wget download tool to test whether the download is successful.
[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 192.168.0.1: 3128 ...... Connected.
A Proxy request has been sent, waiting for a response ...... 200 OK, length:
4,701,622 [audio/mpeg]100%[============>] 4,701,622 635.27K/s ETA 00:0010:06:09 (584.74 KB/s) - `04.mp3' saved [4,701,622/4,701,622] |
Note: the proxy server 192.168.0.1 must be set based on your local area network (LAN). you can see from the above that the test is successful.