yum install squid
vim /etc/squid/squid.conf
http_access allow all
http_port 80 accel vhost vport
cache_peer 192.168.30.35 parent 80 0 originserver round-robin weight=1 name=up35 cache_peer_domain up35 www.xjz.com
visible_hostname localhost.localdomain(hostname)
保存退出
service squid restart