Online Learning Academy - LearnAcad.com

... Sharing Knowledge

  • Increase font size
  • Default font size
  • Decrease font size
Home

Useful commands of Squid caching proxy server

E-mail Print PDF

Useful commands of Squid caching proxy server

 

File Descriptors:

squidclient -p 1111 grep mgr:info

squidclient -p 1111

 

Squid Logs:

tail -f /var/log/squid/access.log

tail -f /var/log/squid/cache.log

 

tail -f /var/log/squid/store.log

 

Main System Log:

tail -f /var/log/messages

 

Squid Daemon start/restart:

/etc/init.d/squid status

/etc/init.d/squid start

/etc/init.d/squid stop

/etc/init.d/squid restart

squid -k reconfigure          # Soft reconfigure

 

Squid configuration file:

vi /etc/squid/squid.conf

vi /etc/squid/cachemgr.conf

 

Importanct Directories:

/etc/squid

/etc/init.d/

/var/log/squid/

/var/spool/squid    # Squid Cache

 

Other Important commands:

squid -k reconfigure

squid -k rotate

squid -k shutdown

squid -k interrupt

squid -k kill

squid -k debug

squid -k check

squid -k parse

squid -d level  Write debugging to stderr also.

squid -f file   Use given config-file instead of
                 /etc/squid/squid.conf

squid -h        Print help message.

squid -k reconfigure|rotate|shutdown|interrupt|kill|debug|check|parse
                 Parse configuration file, then send signal to
                 running copy (except -k parse) and exit.

squid -s | -l facility
                 Enable logging to syslog.

squid -u port   Specify ICP port number (default: 3130), disable with 0.

squid -v        Print version.

squid -z        Create swap directories

squid -C        Do not catch fatal signals.

squid -D        Disable initial DNS tests.

squid -F        Don't serve any requests until store is rebuilt.

squid -N        No daemon mode.

squid -R        Do not set REUSEADDR on port.

squid -S        Double-check swap during rebuild.

squid -X        Force full debugging.

squid -Y        Only return UDP_HIT or UDP_MISS_NOFETCH during fast reload.

 

 

Last Updated on Tuesday, 23 April 2013 12:24  
Follow us on Twitter

Main Menu

Linux

Islam

Windows

Interview Questions

Database

Internet

Cisco

Entertainment

Networking

Graduate Courses

Psychology

Feed Burner

Subscribe to Welcome to Online Learning Academy by Email

Enter your email address:

Delivered by FeedBurner


Google Groups
Subscribe to LearnAcad
Email:
Visit this group

Login Form