歡迎您光臨本站 註冊首頁

squid 3.0無法啟動(usr/local/squid/sbin/squid -N -d1)

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

squid 3.0無法啟動(usr/local/squid/sbin/squid -N -d1)

# /usr/local/squid/sbin/squid -N -d1
2008/04/25 19:22:27| Starting Squid Cache version 3.0.STABLE4 for i686-pc-linux-gnu...
2008/04/25 19:22:27| Process ID 17364
2008/04/25 19:22:27| With 1024 file descriptors available
2008/04/25 19:22:27| Performing DNS Tests...
2008/04/25 19:22:27| Successful DNS name lookup tests...
2008/04/25 19:22:27| DNS Socket created at 0.0.0.0, port 33076, FD 4
2008/04/25 19:22:27| Adding nameserver 202.181.224.2 from squid.conf
2008/04/25 19:22:27| Adding nameserver 168.95.1.1 from squid.conf
2008/04/25 19:22:27| Adding nameserver 61.144.56.100 from squid.conf
2008/04/25 19:22:27| Unlinkd pipe opened on FD 9
2008/04/25 19:22:27| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2008/04/25 19:22:27| Swap maxSize 15728640 KB, estimated 1209895 objects
2008/04/25 19:22:27| Target number of buckets: 60494
2008/04/25 19:22:27| Using 65536 Store buckets
2008/04/25 19:22:27| Max Mem  size: 131072 KB
2008/04/25 19:22:27| Max Swap size: 15728640 KB
2008/04/25 19:22:27| Version 1 of swap file with LFS support detected...
2008/04/25 19:22:27| Rebuilding storage in /var/spool/squid (DIRTY)
2008/04/25 19:22:27| Using Least Load store dir selection
2008/04/25 19:22:27| Current Directory is /usr/local/squid/etc
2008/04/25 19:22:27| Loaded Icons.
2008/04/25 19:22:27| Accepting  HTTP connections at 0.0.0.0, port 3128, FD 11.
2008/04/25 19:22:27| HTCP Disabled.
2008/04/25 19:22:27| Accepting SNMP messages on port 3401, FD 12.
2008/04/25 19:22:27| Pinger socket opened on FD 14
2008/04/25 19:22:27| Ready to serve requests.
2008/04/25 19:22:27| Done reading /var/spool/squid swaplog (0 entries)
2008/04/25 19:22:27| Finished rebuilding storage from disk.
2008/04/25 19:22:27|         0 Entries scanned
2008/04/25 19:22:27|         0 Invalid entries.
2008/04/25 19:22:27|         0 With invalid flags.
2008/04/25 19:22:27|         0 Objects loaded.
2008/04/25 19:22:27|         0 Objects expired.
2008/04/25 19:22:27|         0 Objects cancelled.
2008/04/25 19:22:27|         0 Duplicate URLs purged.
2008/04/25 19:22:27|         0 Swapfile clashes avoided.
2008/04/25 19:22:27|   Took 0.01 seconds (  0.00 objects/sec).
2008/04/25 19:22:27| Beginning Validation Procedure
2008/04/25 19:22:27|   Completed Validation Procedure
2008/04/25 19:22:27|   Validated 25 Entries
2008/04/25 19:22:27|   store_swap_size = 0
2008/04/25 19:22:28| storeLateRelease: released 0 objects
2008/04/25 20:02:27| NETDB state saved; 0 entries, 0 msec
2008/04/25 20:44:07| NETDB state saved; 0 entries, 0 msec
2008/04/25 21:34:13| NETDB state saved; 0 entries, 0 msec
2008/04/25 22:24:20| NETDB state saved; 0 entries, 0 msec
2008/04/25 23:19:11| NETDB state saved; 0 entries, 0 msec
2008/04/26 00:19:40| NETDB state saved; 0 entries, 0 msec
2008/04/26 01:14:40| NETDB state saved; 0 entries, 0 msec
2008/04/26 02:00:02| NETDB state saved; 0 entries, 0 msec
2008/04/26 02:57:01| NETDB state saved; 0 entries, 0 msec
2008/04/26 03:40:40| NETDB state saved; 0 entries, 0 msec
2008/04/26 04:55:58| NETDB state saved; 0 entries, 0 msec
2008/04/26 06:02:17| NETDB state saved; 0 entries, 0 msec
2008/04/26 06:42:39| NETDB state saved; 0 entries, 0 msec
2008/04/26 07:45:38| NETDB state saved; 0 entries, 0 msec
《解決方案》

2008/04/25 19:22:27| Ready to serve requests.

已列印了這句,通常沒有問題了吧.
不能啟動是什麼現象?
《解決方案》

謝謝您!

我使用%squid -s或不加參數是能正常啟動的;

只是使用以上參數就不行了,一直停留在後面的這些畫面;從時間上可以看出,昨天晚上我啟動了一整個晚上,鬱悶。

測試時發現,使用2.6和3.0都有此問題;

現在不加參數啟動就可以正常使用了;

不過,squid 3.0的速度的確比2.6的好很多(使用的是同一條專線的不同IP而已),尤其是訪問國外網站或門戶網站(新浪或163)
《解決方案》

你好,請問你編譯后你是怎樣啟動的嗎?直接用./squid -s 好像不行啊,
《解決方案》

回復 #4 qyzzjian 的帖子

把下面一句直接加到/etc/rc.local文件亦可;(假如squid的安裝路徑是在/usr/local/squid的話)
/usr/local/squid/sbin/squid
《解決方案》

2008/04/25 19:22:27| Accepting  HTTP connections at 0.0.0.0, port 3128, FD 11.

[火星人 ] squid 3.0無法啟動(usr/local/squid/sbin/squid -N -d1)已經有813次圍觀

http://coctec.com/docs/service/show-post-25341.html