yum install squid
yum remove httpd
cache_peer *.*.*.* parent 80 7 no-query originserver name=www1
cache_peer_domain www1 zrblog.net www.zrblog.net
service squid reload
|
|
yum install squid
rm /etc/squid/squid.conf
cache_peer 127.0.0.1 parent 8888 7 no-query originserver name=www1
cache_peer_domain www1 zrblog.net www.zrblog.net
vi /usr/local/nginx/conf/nginx.conf
server
{
listen 8888;
server
{
listen 8888;
server_name $domain$moredomainame;
index index.html index.htm index.php default.html default.htm default.php;
/root/lnmp restart
service squid restart
chkconfig –level 2345 squid on
chkconfig squid on
欢迎光临 360°网站管家_运维学院_提供最新最全的服务器运维视频教程与网站维护视频教程 (http://bbs.360wzgj.com/) | Powered by Discuz! X3.2 |