Problem:
#/usr/local/squid/sbin/squid -k reconfigure
squid: ERROR: No running copy
Resolve:
#ps -aux|grep squid
nobody 2480 0.0 0.7 4088 996 ? S 10:41 0:00 /bin/sh /usr/local/squid/bin/RunCache
nobody 2487 0.1 5.5 8980 6968 ? S 10:41 0:02 squid -NsY
root 3104 0.0 0.5 4448 648 pts/2 S 11:10 0:00 grep squid
#cat /etc/squid/squid.conf |grep "squid.pid"
pid_filename /var/run/squid.pid
#echo /var/run/squid.pid
5049
????????
#vi /etc/squid/squid.conf
修改/var/run/squid.pid为
pid_filename /usr/local/squid/var/logs/squid.pid
此为默认的
#echo "2487" > /usr/local/squid/var/logs/squid.pid
#/usr/local/squid/sbin/squid -k reconfigure
OK!!!
阅读(4025) | 评论(1) | 转发(0) |