Linux terminal proxy settings

Source: Internet
Author: User
Linux terminal proxy settings-Linux Enterprise Application-Linux server application information, the following is a detailed description. We know that Linux in the LAN usually needs to use a proxy when the terminal is connected to an external network.

If the proxy server on the campus network is 192.168.0.1: 3128, set proxy settings on the terminal.

Add

//----------------------

Http_proxy = 192.168.0.1: 3128

Ftp_proxy = 192.168.5.1: 3128

Export http_proxy

Export ftp_proxy

//----------------------

Then execute

Source. bash_profile

Check whether the setting is successful.

[Root @ localhost ~] # Echo $ http_proxy

IP address 192.168.0.1: 3128

[Root @ localhost ~] #

Test whether the download is successful. Use wget to test the download tool.

[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... already connected.

A Proxy request has been sent and is waiting for response... 200 OK

Length: 4,701,622 [audio/mpeg]

100% [============>] 4,701,622 635.27 K/s ETA

10: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.

The test is successful.

Complete!
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.