Selasa, 26 Maret 2013
Super Proxy Lusca Squid Ubuntu v3
1
2
| sudo apt-get updatesudo apt-get install -y squid squidclient squid-cgi gcc build-essential sharutils ccze libzip-dev automake1.9 |
1
2
3
4
5
6
| cd /tmpwget -c http://superproxy.googlecode.com/files/LUSCA_HEAD-r14809-patch.tar.bz2tar -xvjf LUSCA_HEAD-r14809-patch.tar.bz2cd LUSCA_HEAD-r14809make clean |
1
2
| ./configure
--prefix=/usr --exec_prefix=/usr --bindir=/usr/sbin --sbindir=/usr/sbin
--libexecdir=/usr/lib/squid --sysconfdir=/etc/squid --localstatedir=/var/spool/squid --datadir=/usr/share/squid --enable-async-io=24 --with-aufs-threads=24 --with-pthreads --enable-storeio=aufs --enable-linux-netfilter --enable-arp-acl --enable-epoll --enable-removal-policies=heap --with-aio --with-dl --enable-snmp --enable-delay-pools --enable-htcp --enable-cache-digests --disable-unlinkd --enable-large-cache-files --with-large-files --enable-err-languages=English --enable-default-err-language=English --with-maxfd=65536 |
1
2
3
| makesudo make install |
1
2
3
4
5
6
| cd /etc/init.d/mv squid squid.originalwget -c http://superproxy.googlecode.com/files/squid.init.ubuntumv squid.init.ubuntu squidsudo chmod +x /etc/init.d/squid/etc/init.d/squid stop |
1
2
3
4
5
6
7
8
9
10
11
| mkdir -p /usr/local/share/squidchmod 777 /usr/local/share/squidcd /usr/local/share/squidwget http://superproxy.googlecode.com/files/storeurl.plwget http://superproxy.googlecode.com/files/tunning.confwget http://superproxy.googlecode.com/files/refresh.confmv /etc/squid/squid.conf /etc/squid/squid.conf.originalcd /etc/squidwget http://superproxy.googlecode.com/files/squid.confchmod 644 squid.conf |
1
2
3
4
5
6
| nano squid.conf# =========== 19.5 GB ==========cache_dir aufs /cache1 16357 38 256cache_dir aufs /cache2 16357 38 256# =========== 19.5 GB ========== |
1
2
3
4
5
| chown proxy:proxy /cache1chown proxy:proxy /cache2chmod 777 /cache1chmod 777 /cache2 |
1
2
3
4
5
6
7
| chown proxy:proxy /usr/local/share/squid/tunning.confchmod 777 /usr/local/share/squid/tunning.confchown proxy:proxy /usr/local/share/squid/storeurl.plchmod 777 /usr/local/share/squid/storeurl.plchown proxy:proxy /usr/local/share/squid/refresh.confchmod 777 /usr/local/share/squid/refresh.conf |
1
2
3
4
5
6
| squid -f /etc/squid/squid.conf -zsudo /etc/init.d/squid restartsquid -NDd1squidclient mgr:infotail -f /var/log/squid/access.log | ccze |
Restart mesin proxy anda
1
2
3
| shutdown -r nowtail -f /cache1/access.log | ccze |
Langganan:
Posting Komentar (Atom)
Blog Archive
About Me
- Unknown
Selamat Datang Di_Blog Ini
Diberdayakan oleh Blogger.






0 komentar:
Posting Komentar