Linux Terminal proxy settings

Source: Internet
Author: User
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

  

source .bash_profile

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.