How To Start Squid In Linux Command
how to start squid in linux command
how, to, start, squid, in, linux, command
How To Start Squid In Linux Command
Post Description: how to start squid in linux command
POST# 1183
Posted On: Sat Apr 19, 2008 10:50 am
qsuid
Topic: How To Start Squid In Linux Command
hi i just leased a dedicated server with linux red hat and i want to know how i can install squid on my server through the shell using ssh connection.
Share:
BBCODE:
HTML Code:


Sat Apr 19, 2008 10:51 am
1
hostman
Reply #1904
if you want to know how you can start squid on your linux server do this command:

squid -N -d 1 -D
Sat Apr 19, 2008 10:52 am
2
squdi
Reply #1905
when i get send this command i get this error:

[root@ns1 lib]# squid -N -d 1 -D
2008/04/19 11:25:44| Starting Squid Cache version 2.6.STABLE16 for i386-redhat-linux-gnu...
2008/04/19 11:25:44| Process ID 7618
2008/04/19 11:25:44| With 1024 file descriptors available
2008/04/19 11:25:44| Using epoll for the IO loop
2008/04/19 11:25:44| DNS Socket created at 0.0.0.0, port 42464, FD 5
2008/04/19 11:25:44| Adding domain linksys from /etc/resolv.conf
2008/04/19 11:25:44| Adding nameserver 192.168.1.1 from /etc/resolv.conf
2008/04/19 11:25:44| User-Agent logging is disabled.
2008/04/19 11:25:44| Referer logging is disabled.
2008/04/19 11:25:44| Unlinkd pipe opened on FD 10
2008/04/19 11:25:44| Swap maxSize 102400 KB, estimated 7876 objects
2008/04/19 11:25:44| Target number of buckets: 393
2008/04/19 11:25:44| Using 8192 Store buckets
2008/04/19 11:25:44| Max Mem size: 8192 KB
2008/04/19 11:25:44| Max Swap size: 102400 KB
2008/04/19 11:25:44| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2008/04/19 11:25:44| /var/spool/squid/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.
Aborted
Sat Apr 19, 2008 10:54 am
3
hostman
Reply #1906
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
squid -z
Sat Apr 19, 2008 11:00 am
4
aquid
Reply #1907
ok, ran the command and this is what i got

squid -z

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?
Sat Apr 19, 2008 11:02 am
5
sqiud
Reply #1908
oh ok, never mind, i got this after about a minute.. you just have to wait..

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.

What do you think?

* name:  

* email:  

* Please enter comments:


Receive Replies on my Comments
(An email will be sent to you when someone replies to your comments)

Add image to comments
yes no             upload
     
  1. How To Start Squid In Linux Command