yum install squid
但是启动老是失败
[root@blogvps ~]# /etc/init.d/squid start
init_cache_dir /var/spool/squid… /etc/init.d/squid: line 62: 9934 Aborted $SQUID -z -F -D >> /var/log/squid/squid.out 2>&1
Starting squid: /etc/init.d/squid: line 42: 9935 Aborted $SQUID $SQUID_OPTS >> /var/log/squid/squid.out 2>&1
查看你的hostname=xxx
那么在squid.conf最后一行加上
visible_hostname xxx
这样就可以了