瀏覽單個文章
yumesakura
Basic Member
 
yumesakura的大頭照
 

加入日期: Nov 2008
您的住址: 釷星
文章: 20
Unhappy 關於squid的問題(for freebsd)

我的系統版本是freebsd 2.6.9-89.35.1.EL
squid的版本是2.5 stable2

現在的問題是,我在上面架設proxy,但3128port不知為啥開不了

我用別台電腦去telnet 3128,但都出現連線失敗

應該說,我嘗試過其他的port也是一樣,都會出線連線失敗

而在linux主機上去telnet 3128其他台時都正常,不清楚問題再那

設定檔內去看都有設定.

這個是squid的設定檔

http://www.megaupload.com/?d=BLGDQRUX

執行服務的過程中沒有錯誤訊息

這是個是啟動squid後的log檔

Mar 1 14:51:47 edm101 freshclam[2908]: --------------------------------------
Mar 1 14:52:05 edm101 sshd(pam_unix)[3546]: session opened for user root by (uid=0)
Mar 1 14:54:08 edm101 sshd(pam_unix)[3577]: session opened for user root by (uid=0)
Mar 1 15:01:11 edm101 clamd[2679]: No stats for Database check - forcing reload
Mar 1 15:01:12 edm101 clamd[2679]: Reading databases from /var/clamav
Mar 1 15:01:19 edm101 clamd[2679]: Database correctly reloaded (905686 signatures)
Mar 1 15:03:17 edm101 squid[3608]: Squid Parent: child process 3610 started
Mar 1 15:03:52 edm101 squid[3608]: Squid Parent: child process 3610 exited with status 0

而以下這個則是啟動squid的過程
# /usr/local/squid/sbin/squid -N -d1
2011/03/01 15:04:06| Starting Squid Cache version 2.5.STABLE2 for i686-pc-linux-gnu...
2011/03/01 15:04:06| Process ID 3613
2011/03/01 15:04:06| With 1024 file descriptors available
2011/03/01 15:04:06| Performing DNS Tests...
2011/03/01 15:04:06| Successful DNS name lookup tests...
2011/03/01 15:04:06| DNS Socket created at 0.0.0.0, port 34273, FD 4
2011/03/01 15:04:06| Adding nameserver xxx.xxx.xxx.xxx from /etc/resolv.conf
2011/03/01 15:04:06| Unlinkd pipe opened on FD 9
2011/03/01 15:04:06| Swap maxSize 3072000 KB, estimated 236307 objects
2011/03/01 15:04:06| Target number of buckets: 11815
2011/03/01 15:04:06| Using 16384 Store buckets
2011/03/01 15:04:06| Max Mem size: 8192 KB
2011/03/01 15:04:06| Max Swap size: 3072000 KB
2011/03/01 15:04:06| logfileOpen: /usr/local/squid/var/logs/store/log: (21) Is a directory
2011/03/01 15:04:06| Rebuilding storage in /usr/local/squid/var/cache1 (CLEAN)
2011/03/01 15:04:06| Rebuilding storage in /usr/local/squid/var/cache2 (CLEAN)
2011/03/01 15:04:06| Using Least Load store dir selection
2011/03/01 15:04:06| chdir: /usr/local/squid/var/cache: (2) No such file or directory
2011/03/01 15:04:06| Current Directory is /usr/local/squid/sbin
2011/03/01 15:04:06| Loaded Icons.
2011/03/01 15:04:06| Accepting HTTP connections at 192.168.3.101, port 3128, FD 10.
2011/03/01 15:04:06| Accepting ICP messages at 0.0.0.0, port 3130, FD 11.
2011/03/01 15:04:06| WCCP Disabled.
2011/03/01 15:04:06| Ready to serve requests.
2011/03/01 15:04:06| Done scanning /usr/local/squid/var/cache1 swaplog (0 entries)
2011/03/01 15:04:06| Done scanning /usr/local/squid/var/cache2 swaplog (0 entries)
2011/03/01 15:04:06| Finished rebuilding storage from disk.
2011/03/01 15:04:06| 0 Entries scanned
2011/03/01 15:04:06| 0 Invalid entries.
2011/03/01 15:04:06| 0 With invalid flags.
2011/03/01 15:04:06| 0 Objects loaded.
2011/03/01 15:04:06| 0 Objects expired.
2011/03/01 15:04:06| 0 Objects cancelled.
2011/03/01 15:04:06| 0 Duplicate URLs purged.
2011/03/01 15:04:06| 0 Swapfile clashes avoided.
2011/03/01 15:04:06| Took 0.4 seconds ( 0.0 objects/sec).
2011/03/01 15:04:06| Beginning Validation Procedure
2011/03/01 15:04:06| Completed Validation Procedure
2011/03/01 15:04:06| Validated 0 Entries
2011/03/01 15:04:06| store_swap_size = 0k
2011/03/01 15:04:07| storeLateRelease: released 0 objects
2011/03/01 15:04:27| Preparing for shutdown after 0 requests
2011/03/01 15:04:27| Waiting 0 seconds for active connections to finish
2011/03/01 15:04:27| FD 10 Closing HTTP connection
2011/03/01 15:04:27| Shutting down...
2011/03/01 15:04:27| FD 11 Closing ICP connection
2011/03/01 15:04:27| Closing unlinkd pipe on FD 9
2011/03/01 15:04:27| storeDirWriteCleanLogs: Starting...
2011/03/01 15:04:27| Finished. Wrote 0 entries.
2011/03/01 15:04:27| Took 0.0 seconds ( 0.0 entries/sec).

唔,不知道還缺什麼呢??我執行squid之後
就停在
2011/03/01 15:04:27| Took 0.0 seconds ( 0.0 entries/sec).
不動

要自己按ctrl+c取消

但我看網路文件指出
只要有出現
2011/03/01 15:04:06| Ready to serve requests.
就算啟動成功..

那這樣3128port還不通的話,是還缺了什麼呢??
     
      
舊 2011-03-04, 11:56 AM #1
回應時引用此文章
yumesakura離線中