当尝试停止squid3
正在运行的docker镜像时jpetazzo/squid-in-a-can
,我无法停止squid!
root@myserver:/# service squid3 stop
[FAIL] Stopping Squid HTTP Proxy 3.x: squid3[....] Waiting.......................................................................... failed.
failed!
做的时候也会发生同样的事情service squid3 restart
。
[FAIL] Restarting Squid HTTP Proxy 3.x: squid3[....] Waiting...........................................................................failed.
. ok
为什么会发生这种情况?
更新
squid配置文件默认臃肿使用配置文件。
缓存日志失败时似乎没有添加任何内容service squid3 restart
...
...
2015/07/01 01:06:17| Logfile: opening log stdio:/var/log/squid3/netdb.state
2015/07/01 01:06:17| Logfile: closing log stdio:/var/log/squid3/netdb.state
2015/07/01 01:06:17| NETDB state saved; 0 entries, 1 msec
2015/07/01 01:48:05| Logfile: opening log stdio:/var/log/squid3/netdb.state
2015/07/01 01:48:05| Logfile: closing log stdio:/var/log/squid3/netdb.state
2015/07/01 01:48:05| NETDB state saved; 0 entries, 0 msec
2015/07/01 02:44:38| Logfile: opening log stdio:/var/log/squid3/netdb.state
2015/07/01 02:44:38| Logfile: closing log stdio:/var/log/squid3/netdb.state
2015/07/01 02:44:38| NETDB state saved; 0 entries, 1 msec
2015/07/01 03:31:53| Logfile: opening log stdio:/var/log/squid3/netdb.state
2015/07/01 03:31:53| Logfile: closing log stdio:/var/log/squid3/netdb.state
2015/07/01 03:31:53| NETDB state saved; 0 entries, 1 msec
2015/07/01 04:49:57| Logfile: opening log stdio:/var/log/squid3/netdb.state
2015/07/01 04:49:57| Logfile: closing log stdio:/var/log/squid3/netdb.state
2015/07/01 04:49:57| NETDB state saved; 0 entries, 2 msec
答案1
可能是以下几种情况:
- (极大)大缓存
- 硬件速度慢(磁盘)
- 许可问题
几个问题:
- squid.conf 中的缓存参数是什么
- 内存够用吗?交换到磁盘怎么样?