LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1218|回复: 0

求助:squid 启动后,无法连接?

[复制链接]
发表于 2008-5-25 20:47:52 | 显示全部楼层 |阅读模式
1
启动用的是
./squid

2
squid.conf内容
visible_hostname = xxxxxx
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl localnet src 10.0.0.0/8     # RFC1918 possible internal network
acl localnet src 172.16.0.0/12  # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl SSL_ports port 443
acl Safe_ports port 80          # http
acl Safe_ports port 21          # ftp
acl Safe_ports port 443         # https
acl Safe_ports port 70          # gopher
acl Safe_ports port 210         # wais
acl Safe_ports port 1025-65535  # unregistered ports
acl Safe_ports port 280         # http-mgmt
acl Safe_ports port 488         # gss-http
acl Safe_ports port 591         # filemaker
acl Safe_ports port 777         # multiling http
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow all
icp_access allow all
htcp_access allow localnet
htcp_access deny all
http_port xxxxxx:4xxxx
hierarchy_stoplist cgi-bin ?
cache_mem 16 MB
cache_dir ufs /home/xxxxx/squid-3.0.STABLE6/installdir/var/cache 100 16 256
access_log /home/xxxxx/squid-3.0.STABLE6/installdir/var/logs/access.log squid
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern (cgi-bin|\?)    0       0%      0
refresh_pattern .               0       20%     4320
icp_port 3130
coredump_dir /home/xxxxx/squid-3.0.STABLE6/installdir/var/cache


3
那台机器上,我没有root权限, 跑SunOS

4
./squid -NCd1 的结果
2008/05/25 14:11:37| Squid is already running!  Process ID 2721
./squidclient -p mgr:info的结果
client: ERROR: Cannot connect to localhost:4xxxx: Connection refused


5 cache.log的最后几行日志记录
bash-3.00$ tail -40 ../var/logs/cache.log
2008/05/25 04:47:37| Max Swap size: 102400 KB
2008/05/25 04:47:37| Version 1 of swap file with LFS support detected...
2008/05/25 04:47:37| Rebuilding storage in /home/xxxxx/squid-3.0.STABLE6/installdir/var/cache (DIRTY)
2008/05/25 04:47:37| Using Least Load store dir selection
2008/05/25 04:47:37| Set Current Directory to /home/xxxxx/squid-3.0.STABLE6/installdir/var/cache
2008/05/25 04:47:37| Loaded Icons.
2008/05/25 04:47:37| Accepting  HTTP connections at 13x.xxx.xxx.35, port 4xxxx, FD 14.
2008/05/25 04:47:37| Accepting ICP messages at 0.0.0.0, port 3130, FD 15.
2008/05/25 04:47:37| HTCP Disabled.
2008/05/25 04:47:37| Ready to serve requests.
2008/05/25 04:47:37| Done reading /home/xxxxx/squid-3.0.STABLE6/installdir/var/cache swaplog (0 entries)
2008/05/25 04:47:37| Finished rebuilding storage from disk.
2008/05/25 04:47:37|         0 Entries scanned
2008/05/25 04:47:37|         0 Invalid entries.
2008/05/25 04:47:37|         0 With invalid flags.
2008/05/25 04:47:37|         0 Objects loaded.
2008/05/25 04:47:37|         0 Objects expired.
2008/05/25 04:47:37|         0 Objects cancelled.
2008/05/25 04:47:37|         0 Duplicate URLs purged.
2008/05/25 04:47:37|         0 Swapfile clashes avoided.
2008/05/25 04:47:37|   Took 0.09 seconds (  0.00 objects/sec).
2008/05/25 04:47:37| Beginning Validation Procedure
2008/05/25 04:47:37|   Completed Validation Procedure
2008/05/25 04:47:37|   Validated 25 Entries
2008/05/25 04:47:37|   store_swap_size = 0
2008/05/25 04:47:38| storeLateRelease: released 0 objects
2008/05/25 13:59:56| Squid is already running!  Process ID 2721
2008/05/25 14:07:35| Reconfiguring Squid Cache (version 3.0.STABLE6)...
2008/05/25 14:07:35| FD 14 Closing HTTP connection
2008/05/25 14:07:35| FD 15 Closing ICP connection
2008/05/25 14:07:35| Processing Configuration File: /home/xxxxx/squid-3.0.STABLE6/installdir/etc/squid.conf (depth 0)
2008/05/25 14:07:35| DNS Socket created at 0.0.0.0, port xxxxx, FD 10
2008/05/25 14:07:35| Adding domain xxxx.xxxxx.xxxxx from /etc/resolv.conf
2008/05/25 14:07:35| Adding nameserver 13x.xxx.xxx.1 from /etc/resolv.conf
2008/05/25 14:07:35| Adding nameserver 13x.xxx.xxx.2 from /etc/resolv.conf
2008/05/25 14:07:35| Accepting  HTTP connections at xxx.xxx.xxx.35, port 4xxxx, FD 11.
2008/05/25 14:07:35| Accepting ICP messages at 0.0.0.0, port 3130, FD 13.
2008/05/25 14:07:35| HTCP Disabled.
2008/05/25 14:07:35| Loaded Icons.
2008/05/25 14:07:35| Ready to serve requests.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表