今天为了尝试做一个代理,目的是为了手机和ipad,但是在启动squid时有错误:
/var/squid/lib/ssl_db: (2) No such file or directory
2011/11/11 11:22:32| helperOpenServers: Starting 5/5 'ssl_crtd' processes
2011/11/11 11:22:32| Accepting HTTP connections at [::]:139, FD 22.
2011/11/11 11:22:32| HTCP Disabled.
2011/11/11 11:22:32| Ready to serve requests.
2011/11/11 11:22:32| WARNING: ssl_crtd #1 (FD 12) exited
2011/11/11 11:22:32| WARNING: ssl_crtd #2 (FD 14) exited
2011/11/11 11:22:32| WARNING: ssl_crtd #3 (FD 16) exited
2011/11/11 11:22:32| WARNING: ssl_crtd #4 (FD 18) exited
2011/11/11 11:22:32| Too few ssl_crtd processes are running
2011/11/11 11:22:32| storeDirWriteCleanLogs: Starting...
2011/11/11 11:22:32| Finished. Wrote 0 entries.
2011/11/11 11:22:32| Took 0.00 seconds ( 0.00 entries/sec).
FATAL: The ssl_crtd helpers are crashing too rapidly, need help!
解决办法:
1 创建目录 lib
mkdir /var/squid/lib
chown squid:squid /var/squid/lib
2 创建 ssl_db
/usr/local/libexec/squid/ssl_crtd -c -s /var/squid/lib/ssl_db
OK,squid 启动起来。
原因我也不明白,我是用ports安装的,但是居然会有这种问题,如果你也遇到过,希望能帮你解决掉。
评论
发表评论
读过之后是不是文思泉涌了?,快快让大家拜读一下你的高见吧~~~