在过去的 2 天里,我尝试在我的 hostgator vps 上安装 squid 缓存代理。
我一直到打开 squid 服务的地步,总是在 squid 日志中遇到相同的问题“ipcCreate: /usr/lib/squid/ncsa_auth: (13) Permission denied”。
这是 squid 本身的日志:
2010/04/20 16:12:58| helperOpenServers: Starting 5/5 'ncsa_auth' processes
2010/04/20 16:12:58| ipcCreate: /usr/lib/squid/ncsa_auth: (13) Permission denied
2010/04/20 16:12:58| ipcCreate: /usr/lib/squid/ncsa_auth: (13) Permission denied
2010/04/20 16:12:58| ipcCreate: /usr/lib/squid/ncsa_auth: (13) Permission denied
2010/04/20 16:12:58| ipcCreate: /usr/lib/squid/ncsa_auth: (13) Permission denied
2010/04/20 16:12:58| ipcCreate: /usr/lib/squid/ncsa_auth: (13) Permission denied
2010/04/20 16:12:58| Unlinkd pipe opened on FD 22
2010/04/20 16:12:58| Store logging disabled
2010/04/20 16:12:58| Swap maxSize 0 + 262144 KB, estimated 20164 objects
2010/04/20 16:12:58| Target number of buckets: 1008
2010/04/20 16:12:58| Using 8192 Store buckets
2010/04/20 16:12:58| Max Mem size: 262144 KB
2010/04/20 16:12:58| Max Swap size: 0 KB
2010/04/20 16:12:58| Using Least Load store dir selection
2010/04/20 16:12:58| chdir: /usr/local/squid/var/cache: (2) No such file or directory
2010/04/20 16:12:58| Current Directory is /usr/src
2010/04/20 16:12:58| Loaded Icons.
2010/04/20 16:12:58| Accepting HTTP connections at [::]:8854, FD 23.
2010/04/20 16:12:58| HTCP Disabled.
2010/04/20 16:12:58| Squid modules loaded: 0
2010/04/20 16:12:58| Ready to serve requests.
2010/04/20 16:12:58| WARNING: basicauthenticator #5 (FD 16) exited
2010/04/20 16:12:58| WARNING: basicauthenticator #4 (FD 14) exited
2010/04/20 16:12:58| WARNING: basicauthenticator #3 (FD 12) exited
2010/04/20 16:12:58| WARNING: basicauthenticator #2 (FD 10) exited
2010/04/20 16:12:58| Too few basicauthenticator processes are running
2010/04/20 16:12:58| storeDirWriteCleanLogs: Starting...
2010/04/20 16:12:58| Finished. Wrote 0 entries.
2010/04/20 16:12:58| Took 0.00 seconds ( 0.00 entries/sec).
FATAL: The basicauthenticator helpers are crashing too rapidly, need help!
Squid Cache (Version 3.1.1): Terminated abnormally.
CPU Usage: 0.018 seconds = 0.007 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: 3164 KB
Ordinary blocks: 3042 KB 8 blks
Small blocks: 0 KB 0 blks
Holding blocks: 1680 KB 7 blks
Free Small blocks: 0 KB
Free Ordinary blocks: 121 KB
Total in use: 4722 KB 149%
Total free: 121 KB 4%
当我尝试加载 squid 时,我以 root 身份登录。
服务器正在运行 CentOS 5。
任何帮助将不胜感激!
我将其配置为仅允许通过 ncsa 登录进行访问。
** 我正在运行 squid proxy v3.1.1 的最新编译版本