轻笔记显示无法连接到服务器,centos 6.5 + haproxy 1.4搭配之 haproxy不记录日志一则轻笔记...

重启haproxy(提示后端上游服务器没有开启)

[root@localhost vagrant]# cat /var/log/haproxy.log

Jun  7 09:46:23 localhost haproxy[2479]: Proxy main started.

Jun  7 09:46:23 localhost haproxy[2479]: Proxy static started.

Jun  7 09:46:23 localhost haproxy[2479]: Proxy app started.

Jun  7 09:46:23 localhost haproxy[2479]: Server static/static is DOWN, reason: Layer4 connection problem, info: "Connection refused", check duration: 0ms. 0 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.

Jun  7 09:46:23 localhost haproxy[2479]: backend static has no server available!

Jun  7 09:46:24 localhost haproxy[2480]: Server app/app1 is DOWN, reason: Layer4 connection problem, info: "Connection refused", check duration: 0ms. 3 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.

Jun  7 09:46:24 localhost haproxy[2480]: Server app/app2 is DOWN, reason: Layer4 connection problem, info: "Connection refused", check duration: 0ms. 2 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.

Jun  7 09:46:24 localhost haproxy[2480]: Server app/app3 is DOWN, reason: Layer4 connection problem, info: "Connection refused", check duration: 0ms. 1 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.

Jun  7 09:46:25 localhost haproxy[2480]: Server app/app4 is DOWN, reason: Layer4 connection problem, info: "Connection refused", check duration: 0ms. 0 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.

Jun  7 09:46:25 localhost haproxy[2480]: backend app has no server available!

Note:

如果你是自行编译安装haproxy的话,有时候可能会自定义日志文件在编译目录下面,但是rsyslog并没有读取该目录的权限,所以只能呵呵了~,不过办法总归是有的,就是折腾。。。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值