LinuxSir.cn,穿越时空的Linuxsir!

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

Squid反向代理用80端口无法启动求解!

[复制链接]
发表于 2005-6-8 09:58:15 | 显示全部楼层 |阅读模式
2005/06/08 08:51:05| Starting Squid Cache version 2.5.STABLE6 for i386-redhat-linux-gnu...
2005/06/08 08:51:05| Process ID 5283
2005/06/08 08:51:05| With 1024 file descriptors available
2005/06/08 08:51:05| DNS Socket created at 0.0.0.0, port 32781, FD 4
2005/06/08 08:51:05| Adding nameserver 210.77.192.88 from /etc/resolv.conf
2005/06/08 08:51:05| User-Agent logging is disabled.
2005/06/08 08:51:05| Referer logging is disabled.
2005/06/08 08:51:05| Unlinkd pipe opened on FD 9
2005/06/08 08:51:05| Swap maxSize 102400 KB, estimated 7876 objects
2005/06/08 08:51:05| Target number of buckets: 393
2005/06/08 08:51:05| Using 8192 Store buckets
2005/06/08 08:51:05| Max Mem  size: 8192 KB
2005/06/08 08:51:05| Max Swap size: 102400 KB
2005/06/08 08:51:05| Rebuilding storage in /var/spool/squid (DIRTY)
2005/06/08 08:51:05| Using Least Load store dir selection
2005/06/08 08:51:05| Set Current Directory to /var/spool/squid
2005/06/08 08:51:05| Loaded Icons.
2005/06/08 08:51:05| commBind: Cannot bind socket FD 11 to 127.0.0.1:80: (13) Permission denied
FATAL: Cannot open HTTP Port
Squid Cache (Version 2.5.STABLE6): Terminated abnormally.
CPU Usage: 0.021 seconds = 0.010 user + 0.011 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
Memory usage for squid via mallinfo():
        total space in arena:    2112 KB
        Ordinary blocks:         2002 KB      2 blks
        Small blocks:               0 KB      1 blks
        Holding blocks:           200 KB      1 blks
        Free Small blocks:          0 KB
        Free Ordinary blocks:     109 KB
        Total in use:            2202 KB 104%
        Total free:               109 KB 5%
发表于 2005-6-8 11:28:57 | 显示全部楼层
错误都有些提示:
2005/06/08 08:51:05| commBind: Cannot bind socket FD 11 to 127.0.0.1:80: (13) Permission denied
FATAL: Cannot open HTTP PortSquid Cache (Version 2.5.STABLE6): Terminated abnormally.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-6-8 13:18:25 | 显示全部楼层
apache我已经监听了8080了,并且可以正常使用。
squid我让他用80端口他就是提示这个错误,问题是netstat -a 已经没有任何程序使用80了
为什么我用80端口启动squid就是不行呢。
回复 支持 反对

使用道具 举报

发表于 2005-6-8 14:26:31 | 显示全部楼层
兄弟。。把 squid.conf 贴出来
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-6-8 18:03:10 | 显示全部楼层
squid-2.5.STABLE6-3

其余均为默认

http_port localhost:80
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
cache_store_log /var/log/squid/store.log
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern .               0       20%     4320
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80          # http
acl Safe_ports port 21          # ftp
acl Safe_ports port 443 563     # https, snews
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 localhost
acl all src 0.0.0.0/0.0.0.0
http_access allow all
http_access deny all
http_reply_access allow all
icp_access allow all
httpd_accel_host localhost
httpd_accel_port 8080
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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