In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Today, I will talk to you about how to install squid in the Linux server, many people may not know much about it. In order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.
Install squid
Proxy is a software agent or proxy server, and squid is a commonly used proxy service.
1. Install squid
[root@localhost wj] # rpm-qa | grep squid
[root@localhost wj] # yum install-y squid
Installed:
Squid.i686 7vl 3.1.10-19.el6_4
Complete!
[root@localhost wj] #
2. Set the firewall. Squid uses port 3128 by default. Users can modify some ports that do not conflict by themselves, and then add ports to the firewall.
[root@localhost wj] # gedit / etc/sysconfig/iptables
-An INPUT-m state-- state NEW-m tcp-p tcp-- dport 3128-j ACCEPT
[root@localhost phpMyAdmin] # service iptables restart
Iptables: set chain to policy ACCEPT:filter nat [OK]
Iptables: clear firewall rules: [OK]
Iptables: uninstalling module: [OK]
Iptables: apply firewall rules: [OK]
Iptables: load additional modules: nf_conntrack_ftp [OK]
[root@localhost phpMyAdmin] #
3. Start the squid service
[root@localhost wj] # service squid start
Starting squid:. [OK]
[root@localhost wj] #
4. Test, set the http proxy to ip of Linux in the browser, port number 3128
If you open a website at random, you can see it or visit it normally, indicating that the configuration is successful.
After reading the above, do you have any further understanding of how to install squid in the Linux server? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
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.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.