Squid 错误解决一则:squid: ERROR: No running copy
时间:2005-05-17 来源:emailwht
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!!!
#/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!!!
相关阅读 更多 +