Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of setting Http proxy for users on Linux

2025-03-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you how to set up Http agents for users on Linux. I hope you will learn a lot after reading this article. Let's discuss it together.

In order to improve security, most organizations, companies and institutions use proxy servers on the network to access the Internet. Using a proxy server, you can limit the access level of each user as needed.

Enable HTTP proxy

Log in to the user on the Linux system for which you want to enable the HTTP agent. Now edit the .bashrc or .bash _ profile in the home directory and append the following line to the end of the file.

Anonymous proxy

Http_proxy = http://10.0.0.2:8080 export no_proxy = localhost,127.0.0.1 export http_proxy

For authenticated agents

Http_proxy= http://proxyuser:password@10.0.0.2:8080export no_proxy=localhost,127.0.0.1export http_proxy

You can now save the file and reload the configuration file using the following command. Or you can simply log out and log back in to the terminal to enable settings.

After reading this article, $source~ / .bashrc $source~ / .bash _ profile, I believe you have a certain understanding of the method of setting up a Http agent for users on Linux. You want to know more about it. Welcome to follow the industry information channel. Thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report