歡迎您光臨本站 註冊首頁

求助,squid 2.6做反向代理無法啟動,只提示squid: ERROR: No running copy

查了很多文章都是這樣說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!!!

試了沒有解決,另外看到一個版主說的
squid -k parse
squid -z
squid -NCd2
運行最後一個提示
# squid -NCd2
2008/01/10 06:48:42| Starting Squid Cache version 2.6.STABLE6 for i686-redhat-linux-gnu...
2008/01/10 06:48:42| Process ID 3119
2008/01/10 06:48:42| With 1024 file descriptors available
2008/01/10 06:48:42| Using epoll for the IO loop
2008/01/10 06:48:42| Performing DNS Tests...
FATAL: ipcache_init: DNS name lookup tests failed.
Aborted

請大大們幫忙
謝謝
《解決方案》

2008/01/10 06:48:42| Performing DNS Tests...
FATAL: ipcache_init: DNS name lookup tests failed.

從這個錯誤看,squid這台機器dns沒有配置好,所以squid沒法啟動
你試試squid -ND &啟動試試
《解決方案》

謝謝樓上的,能夠啟動了,這個機器是測試機器,將來若掛到外網上不知道DNS之類的需要怎麼設置,有熟悉的希望大家能指點下
《解決方案》

不用設置,只要倒是你那台機器用dig命令能解析域名了,就說明dns是好的了
到時用squid -N &啟動就可以了
-D的意思就是忽略dns檢查

[火星人 ] 求助,squid 2.6做反向代理無法啟動,只提示squid: ERROR: No running copy已經有436次圍觀

http://coctec.com/docs/service/show-post-32997.html