How To Start Squid In Linux Command
RegisterLogin
How To Start Squid In Linux Command
Post Description: How To Start Squid In Linux Command
Tags: How, To, Start, Squid, In, Linux, Command
This Post Was Posted On Apr 19, 2008 By qsuid #578
Post Description: How To Start Squid In Linux Command
Tags: How, To, Start, Squid, In, Linux, Command
This Post Was Posted On Apr 19, 2008 By qsuid #578
How To Start Squid In Linux Command by qsuid
agus
#9888 1
I do not understand why this happens please help me
squid -z
2012/08/06 06:41:17| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2012/08/06 06:41:17| logfileOpen: opening log /dev/null
2012/08/06 06:41:17| /cache/00: (2) No such file or directory
FATAL: Failed to verify one of the swap directories, Check cache.log
for details. Run 'squid -z' to create swap directories
if needed, or if running Squid for the first time.
Squid Cache (Version 2.7.STABLE9): Terminated abnormally.
CPU Usage: 0.012 seconds = 0.008 user 0.004 sys
Maximum Resident Size: 14816 KB
Page faults with physical i/o: 0
squid -z
2012/08/06 06:41:17| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2012/08/06 06:41:17| logfileOpen: opening log /dev/null
2012/08/06 06:41:17| /cache/00: (2) No such file or directory
FATAL: Failed to verify one of the swap directories, Check cache.log
for details. Run 'squid -z' to create swap directories
if needed, or if running Squid for the first time.
Squid Cache (Version 2.7.STABLE9): Terminated abnormally.
CPU Usage: 0.012 seconds = 0.008 user 0.004 sys
Maximum Resident Size: 14816 KB
Page faults with physical i/o: 0
Aug 05, 2012 Reply Report abuse
jayesh
#4722 2
start squid servies
Dec 26, 2010 Reply Report abuse
gentriop
#4352 3
exactly, mine says squid rebuilding storage dirty
Aug 13, 2010 Reply Flagged!
webune
#2935 4
if you need more help check this info:
File: *manpages*, Node: squid, Up: (dir)
squid(8) squid(8)
NAME
squid - proxy caching server
SYNOPSIS
squid [ -dhirsvzCDFNRVYX ] [ -l facility ] [ -f config-file ] [ -[ au ]
port ] [ -k signal ] [ -n service-name ] [ -O cmd-line ]
DESCRIPTION
squid is a high-performance proxy caching server for web clients, sup-
porting FTP, gopher, and HTTP data objects. Unlike traditional caching
software, squid handles all requests in a single, non-blocking, I/O-
driven process.
squid keeps meta data and especially hot objects cached in RAM, caches
DNS lookups, supports non-blocking DNS lookups, and implements negative
caching of failed requests.
squid supports SSL, extensive access controls, and full request log-
ging. By using the lightweight Internet Cache Protocol, squid caches
can be arranged in a hierarchy or mesh for additional bandwidth sav-
ings.
squid consists of a main server program squid, a Domain Name System
lookup program dnsserver, some optional programs for rewriting requests
and performing authentication, and some management and client tools.
When squid starts up, it spawns a configurable number of dnsserver pro-
cesses, each of which can perform a single, blocking Domain Name System
(DNS) lookup. This reduces the amount of time the cache waits for DNS
lookups.
squid is derived from the ARPA-funded Harvest Project http://har-
vest.cs.colorado.edu/
This manual page only lists the command line arguments. For details on
how to configure squid see the file /etc/squid/squid.conf, the Squid
FAQ and the documentation at the squid home page http://www.squid-
cache.org
OPTIONS
-d level
Write debugging to stderr also.
-f file
Use the given config-file instead of /etc/squid/squid.conf
-h Print help message.
-i Install as a Windows Service (see -n option).
-k reconfigure | rotate | shutdown | interrupt | kill | debug | check |
parse
Parse configuration file, then send signal to running copy
(except -k parse) and exit.
-n name
Specify Windows Service name to use for service operations,
default is: Squid
-r Remove a Windows Service (see -n option).
-s Enable logging to syslog.
-l facility
Use specified syslog facility. implies -s
-u port
Specify ICP port number (default: 3130), disable with 0.
-v Print version.
-z Create swap directories
-C Do not catch fatal signals.
-D Disable initial DNS tests.
-F Don’t serve any requests until store is rebuilt.
-N No daemon mode.
-O options
Set Windows Service Command line options in Registry.
-R Do not set REUSEADDR on port.
-X Force full debugging.
-Y Only return UDP_HIT or UDP_MISS_NOFETCH during fast reload.
FILES
/etc/squid/squid.conf
The main configuration file. You must initially make changes to
this file for squid to work. For example, the default configu-
ration does not allow access from any browser.
/etc/squid/squid.conf.default
Reference copy of the configuration file. Always kept up to date
with the version of Squid you are using. Use this to look up
configuration syntax after upgrading.
/etc/squid/mime.conf (mime_table)
MIME type mappings for FTP gatewaying
/usr/share/errors/English (error_directory)
Error page templates
SEE ALSO
cachemgr.cgi(8), ncsa_auth(8), pam_auth(8), squid_ldap_auth(8),
squid_ldap_group(8), squid_session(8), squid_unix_group(8),
The Squid FAQ
Squid Web Proxy 2.6.STABLE12 2006-05-29 squid(8)
Dec 01, 2009 Reply Report abuse
german
#2934 5
that command worked for me, but this is my result:
[root - at - localhost ~]# squid -n -d 1 -d
2009/11/30 12:11:06| starting squid cache version 2.6.stable12 for i686-redhat-linux-gnu...
2009/11/30 12:11:06| process id 2613
2009/11/30 12:11:06| with 1024 file descriptors available
2009/11/30 12:11:06| using epoll for the io loop
2009/11/30 12:11:06| dns socket created at 0.0.0.0, port 32770, fd 6
2009/11/30 12:11:06| adding nameserver 192.168.0.1 from /etc/resolv.conf
2009/11/30 12:11:06| user-agent logging is disabled.
2009/11/30 12:11:06| referer logging is disabled.
2009/11/30 12:11:06| unlinkd pipe opened on fd 12
2009/11/30 12:11:06| swap maxsize 102400 kb, estimated 7876 objects
2009/11/30 12:11:06| target number of buckets: 393
2009/11/30 12:11:06| using 8192 store buckets
2009/11/30 12:11:06| max mem size: 8192 kb
2009/11/30 12:11:06| max swap size: 102400 kb
2009/11/30 12:11:06| local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2009/11/30 12:11:06| /var/spool/squid/00
[root - at - localhost ~]# squid -n -d 1 -d
2009/11/30 12:11:06| starting squid cache version 2.6.stable12 for i686-redhat-linux-gnu...
2009/11/30 12:11:06| process id 2613
2009/11/30 12:11:06| with 1024 file descriptors available
2009/11/30 12:11:06| using epoll for the io loop
2009/11/30 12:11:06| dns socket created at 0.0.0.0, port 32770, fd 6
2009/11/30 12:11:06| adding nameserver 192.168.0.1 from /etc/resolv.conf
2009/11/30 12:11:06| user-agent logging is disabled.
2009/11/30 12:11:06| referer logging is disabled.
2009/11/30 12:11:06| unlinkd pipe opened on fd 12
2009/11/30 12:11:06| swap maxsize 102400 kb, estimated 7876 objects
2009/11/30 12:11:06| target number of buckets: 393
2009/11/30 12:11:06| using 8192 store buckets
2009/11/30 12:11:06| max mem size: 8192 kb
2009/11/30 12:11:06| max swap size: 102400 kb
2009/11/30 12:11:06| local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2009/11/30 12:11:06| /var/spool/squid/00
Nov 30, 2009 Reply Report abuse
stefan
#2893 6
can you show how to start squid at boot time
Nov 25, 2009 Reply Report abuse
genima
#2831 7
i tried your command but how long does it take to restart squid
Nov 16, 2009 Reply Report abuse
jayme
#2731 8
is the the same for quid rebuilding storage in /var/spool/squid (dirty)
Nov 06, 2009 Reply Report abuse
ramya
#753 9
can i know the command to check my squid version??
Aug 20, 2009 Reply Report abuse
chalie
#752 10
show me how to start squid linux automatically on boot
Jul 13, 2009 Reply Flagged!
esquid
#751 11
please send me restart squid commands
Apr 25, 2009 Reply Report abuse
kalesingh
#750 12
network squid restart
Sep 20, 2008 Reply Report abuse
sqiud
#749 13
oh ok, never mind, i got this after about a minute.. you just have to wait..
hahah
hahah
2008/04/19 11:36:48| Preparing for shutdown after 0 requests
2008/04/19 11:36:48| Waiting 0 seconds for active connections to finish
2008/04/19 11:36:48| FD 11 Closing HTTP connection
2008/04/19 11:36:48| Shutting down...
2008/04/19 11:36:48| FD 12 Closing ICP connection
2008/04/19 11:36:48| Closing unlinkd pipe on FD 10
2008/04/19 11:36:48| storeDirWriteCleanLogs: Starting...
2008/04/19 11:36:48| Finished. Wrote 0 entries.
2008/04/19 11:36:48| Took 0.0 seconds ( 0.0 entries/sec).
2008/04/19 11:36:48| Squid Cache (Version 2.6.STABLE16): Exiting normally.
2008/04/19 11:36:48| Waiting 0 seconds for active connections to finish
2008/04/19 11:36:48| FD 11 Closing HTTP connection
2008/04/19 11:36:48| Shutting down...
2008/04/19 11:36:48| FD 12 Closing ICP connection
2008/04/19 11:36:48| Closing unlinkd pipe on FD 10
2008/04/19 11:36:48| storeDirWriteCleanLogs: Starting...
2008/04/19 11:36:48| Finished. Wrote 0 entries.
2008/04/19 11:36:48| Took 0.0 seconds ( 0.0 entries/sec).
2008/04/19 11:36:48| Squid Cache (Version 2.6.STABLE16): Exiting normally.
Apr 19, 2008 Reply Report abuse
aquid
#748 14
ok, ran the command and this is what i got
then i send this comand:
[root@ns1 ~]# squid -N -d 1 -D
2008/04/19 11:35:22| Starting Squid Cache version 2.6.STABLE16 for i386-redhat-linux-gnu...
2008/04/19 11:35:22| Process ID 7792
2008/04/19 11:35:22| With 1024 file descriptors available
2008/04/19 11:35:22| Using epoll for the IO loop
2008/04/19 11:35:22| DNS Socket created at 0.0.0.0, port 42464, FD 5
2008/04/19 11:35:22| Adding domain linksys from /etc/resolv.conf
2008/04/19 11:35:22| Adding nameserver 192.168.1.1 from /etc/resolv.conf
2008/04/19 11:35:22| User-Agent logging is disabled.
2008/04/19 11:35:22| Referer logging is disabled.
2008/04/19 11:35:22| Unlinkd pipe opened on FD 10
2008/04/19 11:35:22| Swap maxSize 102400 KB, estimated 7876 objects
2008/04/19 11:35:22| Target number of buckets: 393
2008/04/19 11:35:22| Using 8192 Store buckets
2008/04/19 11:35:22| Max Mem size: 8192 KB
2008/04/19 11:35:22| Max Swap size: 102400 KB
2008/04/19 11:35:22| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2008/04/19 11:35:22| Rebuilding storage in /var/spool/squid (DIRTY)
2008/04/19 11:35:22| Using Least Load store dir selection
2008/04/19 11:35:22| Set Current Directory to /var/spool/squid
2008/04/19 11:35:22| Loaded Icons.
2008/04/19 11:35:22| Accepting proxy HTTP connections at 0.0.0.0, port 3128, FD 11.
2008/04/19 11:35:22| Accepting ICP messages at 0.0.0.0, port 3130, FD 12.
2008/04/19 11:35:22| WCCP Disabled.
2008/04/19 11:35:22| Ready to serve requests.
2008/04/19 11:35:22| Done scanning /var/spool/squid (0 entries)
2008/04/19 11:35:22| Finished rebuilding storage from disk.
2008/04/19 11:35:22| 0 Entries scanned
2008/04/19 11:35:22| 0 Invalid entries.
2008/04/19 11:35:22| 0 With invalid flags.
2008/04/19 11:35:22| 0 Objects loaded.
2008/04/19 11:35:22| 0 Objects expired.
2008/04/19 11:35:22| 0 Objects cancelled.
2008/04/19 11:35:22| 0 Duplicate URLs purged.
2008/04/19 11:35:22| 0 Swapfile clashes avoided.
2008/04/19 11:35:22| Took 0.4 seconds ( 0.0 objects/sec).
2008/04/19 11:35:22| Beginning Validation Procedure
2008/04/19 11:35:22| Completed Validation Procedure
2008/04/19 11:35:22| Validated 0 Entries
2008/04/19 11:35:22| store_swap_size = 0k
2008/04/19 11:35:23| storeLateRelease: released 0 objects
but it looked like it hanged i didnt get back tot he shell prompt i had to hit return so does that mean that its working now?
squid -z
2008/04/19 11:35:06| Creating Swap Directories
2008/04/19 11:35:06| Creating Swap Directories
then i send this comand:
[root@ns1 ~]# squid -N -d 1 -D
2008/04/19 11:35:22| Starting Squid Cache version 2.6.STABLE16 for i386-redhat-linux-gnu...
2008/04/19 11:35:22| Process ID 7792
2008/04/19 11:35:22| With 1024 file descriptors available
2008/04/19 11:35:22| Using epoll for the IO loop
2008/04/19 11:35:22| DNS Socket created at 0.0.0.0, port 42464, FD 5
2008/04/19 11:35:22| Adding domain linksys from /etc/resolv.conf
2008/04/19 11:35:22| Adding nameserver 192.168.1.1 from /etc/resolv.conf
2008/04/19 11:35:22| User-Agent logging is disabled.
2008/04/19 11:35:22| Referer logging is disabled.
2008/04/19 11:35:22| Unlinkd pipe opened on FD 10
2008/04/19 11:35:22| Swap maxSize 102400 KB, estimated 7876 objects
2008/04/19 11:35:22| Target number of buckets: 393
2008/04/19 11:35:22| Using 8192 Store buckets
2008/04/19 11:35:22| Max Mem size: 8192 KB
2008/04/19 11:35:22| Max Swap size: 102400 KB
2008/04/19 11:35:22| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2008/04/19 11:35:22| Rebuilding storage in /var/spool/squid (DIRTY)
2008/04/19 11:35:22| Using Least Load store dir selection
2008/04/19 11:35:22| Set Current Directory to /var/spool/squid
2008/04/19 11:35:22| Loaded Icons.
2008/04/19 11:35:22| Accepting proxy HTTP connections at 0.0.0.0, port 3128, FD 11.
2008/04/19 11:35:22| Accepting ICP messages at 0.0.0.0, port 3130, FD 12.
2008/04/19 11:35:22| WCCP Disabled.
2008/04/19 11:35:22| Ready to serve requests.
2008/04/19 11:35:22| Done scanning /var/spool/squid (0 entries)
2008/04/19 11:35:22| Finished rebuilding storage from disk.
2008/04/19 11:35:22| 0 Entries scanned
2008/04/19 11:35:22| 0 Invalid entries.
2008/04/19 11:35:22| 0 With invalid flags.
2008/04/19 11:35:22| 0 Objects loaded.
2008/04/19 11:35:22| 0 Objects expired.
2008/04/19 11:35:22| 0 Objects cancelled.
2008/04/19 11:35:22| 0 Duplicate URLs purged.
2008/04/19 11:35:22| 0 Swapfile clashes avoided.
2008/04/19 11:35:22| Took 0.4 seconds ( 0.0 objects/sec).
2008/04/19 11:35:22| Beginning Validation Procedure
2008/04/19 11:35:22| Completed Validation Procedure
2008/04/19 11:35:22| Validated 0 Entries
2008/04/19 11:35:22| store_swap_size = 0k
2008/04/19 11:35:23| storeLateRelease: released 0 objects
but it looked like it hanged i didnt get back tot he shell prompt i had to hit return so does that mean that its working now?
Apr 19, 2008 Reply Report abuse
hostman
#747 15
have you tried what it says on the message?
Run 'squid -z' to create swap directories
if needed, or if running Squid for the first time.
to create swap directories
Run 'squid -z' to create swap directories
if needed, or if running Squid for the first time.
to create swap directories
squid -z
Apr 19, 2008 Reply Report abuse
View More Comments
Leave Your Comments...
©2012 Webune Forums - Sun Aug 05, 2012 10:11 pm
Powered by: Webune Forums V3
Powered by: Webune Forums V3