Squid adalah sebuah service yang digunakan sebagai proxy server dan web cache. Squid memiliki banyak jenis kegunaaan, mulai dari mempercepat server web dengan melakukan caching permintaan yang berulang-ulang, caching DNS, caching situs web dan lain-lain. untuk itu kami membuat tutorial cara Membersihkan Dan Create Ulang Cache Squid Proxy
Membersihkan Dan Create Ulang Cache Squid Proxy
- Step #1: Mencari lokasi direktori cache Squid
# cat /etc/squid/squid.conf | grep cache_dir
outputnya akan seperti ini
cache_dir ufs /var/spool/squid 1000 16 256
# cat /etc/squid/squid.conf | grep cache_dir
outputnya akan seperti ini
cache_dir ufs /var/spool/squid 1000 16 256
# squid -k shutdown
hapus cache direktori
# rm -rf /path/to/dir/cache/ # rm -rf /var/spool/squid/
# mkdir /var/spool/squid # chown squid:squid /var/spool/squid
membuat cache_dir
# squid -z
outputnya
2014/08/24 04:24:19| Making directories in /var/spool/squid/00 2014/08/24 04:24:19| Making directories in /var/spool/squid/01 2014/08/24 04:24:19| Making directories in /var/spool/squid/02 2014/08/24 04:24:20| Making directories in /var/spool/squid/03 2014/08/24 04:24:20| Making directories in /var/spool/squid/04 2014/08/24 04:24:20| Making directories in /var/spool/squid/05 2014/08/24 04:24:20| Making directories in /var/spool/squid/06 2014/08/24 04:24:20| Making directories in /var/spool/squid/07 2014/08/24 04:24:20| Making directories in /var/spool/squid/08 2014/08/24 04:24:20| Making directories in /var/spool/squid/09 2014/08/24 04:24:20| Making directories in /var/spool/squid/0A 2014/08/24 04:24:20| Making directories in /var/spool/squid/0B 2014/08/24 04:24:20| Making directories in /var/spool/squid/0C 2014/08/24 04:24:20| Making directories in /var/spool/squid/0D 2014/08/24 04:24:20| Making directories in /var/spool/squid/0E 2014/08/24 04:24:20| Making directories in /var/spool/squid/0F
# service squid start
# netstat -tulpn | grep :3128 # tail -f /var/log/squid/access.log # tail -f /var/log/squid/cache.log
Selamat mencoba artikel GemarOprek 🙂