:Install
rpm -Uvh nginx-1.2.6-1.el6.ngx.i386.rpm
:Create directories to hold cache files
mkdir /usr/local/www
mkdir /usr/local/www/nginx_cache
mkdir /usr/local/www/nginx_cache/tmp
mkdir /usr/local/www/nginx_cache/files
chown apache /usr/local/www/nginx_cache/files/ -Rf
:create cache dir
mkdir /cache1
chown squid:squid /cache1
chmod -R 777 /cache1
:Start dir
squid -z
:Start squid
service squid start
:Restart Nginx
service nginx restart
:Chek cached videos
ls -lh /usr/local/www/nginx_cache/files
:chek cache hit
tail -f /var/log/squid/access.log | grep HIT
: Check Hit
squidclient -p 3128 mgr:info |grep Hit
:squid debag
squid -NCd10
Tidak ada komentar:
Posting Komentar