http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny all
http_reply_access allow all
icp_access allow all
visible_hostname webcache3.abc.com
logfile_rotate 10
always_direct allow acceleratedHostABC
coredump_dir /export/home/squid/cache4)配置hosts文件
#vi /etc/hosts
#
127.0.0.1 localhost
IP www.abc.com
5)配置/etc/init.d/squid
#!/bin/bash
# squid This shell script takes care of starting and stopping
# Squid Internet Object Cache
#
# chkconfig: - 90 25
文章来源于领测软件测试网 https://www.ltesting.net/