Squid3 configuration points

Source: Internet
Author: User

To configure squid3, you must first install apt-get update and then install apt-get install squid to configure and enable vi/usr/local/squid/etc/squid. conf 3.1 change listener port http_port 9090 3.2 change access control http_access allow all 3.3 Enable squid 3.3.1 initialize squid. the cache directory ------------------ in conf is an important command -----------------/usr/local/squid/sbin/squid-z 3.3.2 for squid. conf troubleshooting/usr/local/squid/sbin/squid-k parse 3.3.3 start squid/usr/local/squid/sbin/squid-N-d1 3.3.4 run squid/usr /local/s Quid/sbin/squid-s 3.3.5 stop/usr/local/squid/sbin/squid-k shutdown 3.3.5 reboot the modified squid. conf/usr/local/squid/sbin/squid-k reconfigure ------------------------ Configuration by myself. It can be used for test. --------------- 01:19:40 | Processing Configuration File:/etc/squid3/squid. conf (depth 0) 01:19:40 | Processing: acl manager proto cache_object2013/06/29 01:19:40 | Processing: acl localhost src 127.0.0.1/32: 12013/ 06/29 01:19:40 | Processing: acl to_localhost dst 127.0.0.0/8 0.0.0.0/32: 12013/06/29 01:19:40 | Processing: acl localnet src 10.0.0.0/8 # RFC1918 possible internal network2013/06/29 01:19:40 | Processing: acl SSL_ports port 4432013/06/29 01:19:40 | Processing: acl Safe_ports port 80 # http2013/06/29 01:19:40 | Processing: acl Safe_ports port 21 # ftp2013/06/29 01:19:40 | Processing: acl Safe_ports por T 443 # https2013/06/29 01:19:40 | Processing: acl Safe_ports port 70 # gopher2013/06/29 01:19:40 | Processing: acl Safe_ports port 210 # wais2013/06/29 01:19:40 | Processing: acl Safe_ports port 1025-65535 # unregistered ports2013/06/29 01:19:40 | Processing: acl Safe_ports port 280 # http-mgmt2013/06/29 01:19:40 | Processing: acl Safe_ports port 488 # gss-http2013/06/29 01:19:40 | Processing: acl Safe _ Ports port 591 # filemaker2013/06/29 01:19:40 | Processing: acl Safe_ports port 777 # multiling http2013/06/29 01:19:40 | Processing: acl CONNECT method CONNECT2013/06/29 01:19:40 | Processing: http_access allow manager localhost2013/06/29 01:19:40 | Processing: http_access allow localnet2013/06/29 01:19:40 | Processing: http_access allow localhost2013/06/29 01:19:40 | Processing: http_access allow all 01:19:40 | Processing: http_port 0.0.0.0: 31282013/06/29 01:19:40 | Processing: cache_mem 1000 MB2013/06/29 01:19:40 | Processing: maximum_object_size_in_memory 1024 KB2013/06/29 01:19:40 | Processing: cache_dir ufs/var/spool/squid3 1024 16 2562013/06/29 01:19:40 | Processing: maximum_object_size 32327 KB2013/06/29 01:19:40 | Processing: cache_swap_low 902013/06/29 01:19:40 | Processing: cache _ Swap_high 952013/06/29 01:19:40 | Processing: access_log/var/log/squid3/access. log squid2013/06/29 01:19:40 | Processing: cache_store_log/var/log/squid3/store. log2013/06/29 01:19:40 | Processing: pid_filename/var/run/squid3.pid2013/06/29 01:19:40 | Processing: cache_log/var/log/squid3/cache. log2013/06/29 01:19:40 | Processing: coredump_dir/var/spool/squid32013/06/29 01:19:40 | Processing: refresh _ Pattern ^ ftp: 1440 20% 100802013/06/29 01:19:40 | Processing: refresh_pattern ^ gopher: 1440 0% 14402013/06/29 01:19:40 | Processing: refresh_pattern-I (/cgi-bin/| \?) 0 0% 02013/06/29 01:19:40 | Processing: refresh_pattern (Release | Packages(.gz) *) $0 20% 28802013/06/29 01:19:40 | Processing: refresh_pattern. 0 20% 43202013/06/29 01:19:40 | Processing: cache_mgr xxx2013/06/29 01:19:40 | Processing: visible_hostname xxx. xxx. xxx. xxx2013/06/29 01:19:40 | Processing: dns_nameservers xxx. xxx. xxx. the final solution of xxx squid is not the above configuration. The permission lies in the permissions of related logs and cached files. squid 3 shows start: squid3-N-d1, And you can directly grant permissions to the swap. state folder. In addition, the log permissions of access. log and cache. log must be changed in advance. These are mentioned in squid3-k parse. Asset ion failure mem-> swap out. the following error occurs when the file is declared as follows: <G id = "1"> </G>. The only solution is to reduce the number of IP addresses and no new ip addresses are allocated. Or, reinitialize the Directory through squid3-z. Remember: before changing the conf file, back up the original file.

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.