设为首页 收藏本站
查看: 1325|回复: 0

[经验分享] 解决squid启动Pinger自动退出问题

[复制链接]

尚未签到

发表于 2018-12-28 06:22:02 | 显示全部楼层 |阅读模式
  squid2.7开启Pinger功能,如下
./configure --prefix=/a8root/bin/squid2.7/ --with-pthreads --enable-forward-log --enable-follow-x-forwarded-for --enable-dlmalloc --enable-xmalloc-statistics --enable-large-cache-files --with-large-files --enable-epoll --enable-snmp --with-maxfd=65535 --enable-removal-policies=heap,lru --libdir=/usr/lib64 --includedir=/usr/include -enable-cache-digests --enable-cachemgr-hostname --enable-icmp --enable-storeio=aufs,ufs,diskd,coss
make
make install

make install-pinger
第次启动时,icmp报错:
2011/07/18 23:31:57| Starting Squid Cache version 2.7.STABLE9 for x86_64-unknown-linux-gnu...
2011/07/18 23:31:57| Process ID 9873
2011/07/18 23:31:57| With 32767 file descriptors available
2011/07/18 23:31:57| Using epoll for the IO loop
2011/07/18 23:31:57| DNS Socket created at 0.0.0.0, port 35300, FD 6
2011/07/18 23:31:57| Adding nameserver 202.106.0.20 from /etc/resolv.conf
2011/07/18 23:31:57| logfileOpen: opening log /a8root/logs/squid/access.log
2011/07/18 23:31:57| Unlinkd pipe opened on FD 11
2011/07/18 23:31:57| Swap maxSize 614400000 + 5120000 KB, estimated 47655384 objects
2011/07/18 23:31:57| Target number of buckets: 2382769
2011/07/18 23:31:57| Using 4194304 Store buckets
2011/07/18 23:31:57| Max Mem size: 5120000 KB
2011/07/18 23:31:57| Max Swap size: 614400000 KB
2011/07/18 23:31:57| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2011/07/18 23:31:57| logfileOpen: opening log /a8root/logs/squid/store.log
2011/07/18 23:31:57| Rebuilding storage in /a8root/squid/cache1 (DIRTY)
2011/07/18 23:31:57| Rebuilding storage in /a8root/squid/cache2 (DIRTY)
2011/07/18 23:31:57| Rebuilding storage in /a8root/squid/cache3 (DIRTY)
2011/07/18 23:31:57| Using Least Load store dir selection
2011/07/18 23:31:57| Current Directory is /a8root/logs
2011/07/18 23:31:57| Loaded Icons.
2011/07/18 23:31:57| Accepting accelerated HTTP connections at 0.0.0.0, port 3128, FD 16.
2011/07/18 23:31:57| Accepting ICP messages at 0.0.0.0, port 3130, FD 17.
2011/07/18 23:31:57| Accepting SNMP messages on port 3401, FD 18.
2011/07/18 23:31:57| WCCP Disabled.
2011/07/18 23:31:57| Pinger socket opened on FD 19
2011/07/18 23:31:57| Configuring 192.168.40.91 Sibling 192.168.40.91/3128/3130
2011/07/18 23:31:57| Configuring 192.168.40.125 Sibling 192.168.40.125/3128/3130
2011/07/18 23:31:57| Configuring a Parent a/3128/0
2011/07/18 23:31:57| Configuring b Parent b/80/0
2011/07/18 23:31:57| Ready to serve requests.
2011/07/18 23:31:58| Done scanning /a8root/squid/cache1 (0 entries)
2011/07/18 23:31:58| Done scanning /a8root/squid/cache2 (0 entries)
2011/07/18 23:31:58| Done scanning /a8root/squid/cache3 (0 entries)
2011/07/18 23:31:58| Finished rebuilding storage from disk.
2011/07/18 23:31:58| 0 Entries scanned
2011/07/18 23:31:58| 0 Invalid entries.
2011/07/18 23:31:58| 0 With invalid flags.
2011/07/18 23:31:58| 0 Objects loaded.
2011/07/18 23:31:58| 0 Objects expired.
2011/07/18 23:31:58| 0 Objects cancelled.
2011/07/18 23:31:58| 0 Duplicate URLs purged.
2011/07/18 23:31:58| 0 Swapfile clashes avoided.
2011/07/18 23:31:58| Took 0.8 seconds ( 0.0 objects/sec).
2011/07/18 23:31:58| Beginning Validation Procedure
2011/07/18 23:31:58| Completed Validation Procedure
2011/07/18 23:31:58| Validated 0 Entries
2011/07/18 23:31:58| store_swap_size = 0k
2011/07/18 23:31:58| storeLateRelease: released 0 objects
2011/07/18 23:32:15| CACHEMGR: @127.0.0.1 requesting 'info'
2011/07/18 23:32:17| icmpSend: send: (111) Connection refused
2011/07/18 23:32:17| Closing Pinger socket on FD 19

最后解决方法如下:
chown root /a8root/bin/squid2.7/libexec/pinger #pinger属主必须是root
chmod 4711 /a8root/bin/squid2.7/libexec/pinger #权限设置为4711
[root@nokia01 squid]# ll /a8root/bin/squid2.7/libexec/pinger
-rws--x--x 1 root squid 125971 Jul 18 23:17 /a8root/bin/squid2.7/libexec/pinger
[root@nokia01 squid]#ps -ef f
root 9871 1 0 Jul18 ? Ss 0:00 /a8root/bin/squid2.7/sbin/squid -sD
squid 9873 9871 0 Jul18 ? Sl 0:02 \_ (squid) -sD
squid 9874 9873 0 Jul18 ? S 0:00 \_ (unlinkd)
squid 10073 9873 0 00:08 ? S 0:00 \_ (pinger)





运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-656590-1-1.html 上篇帖子: squid 访问控制说明 下篇帖子: squid 限制内网用户 只能登陆,不能上传
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表