将行添加到/etc/haproxy/haproxy.cfg为
part of creating a transparent proxy后,
source 0.0.0.0 usesrc clientip
重启haproxy开始出错
~# service haproxy reload * Reloading haproxy haproxy [ALERT] 230/153724 (1140) : [/usr/sbin/haproxy.main()] Some configuration options require full privileges,so global.uid cannot be changed.
我已经以root身份运行服务haproxy reload.还有什么我们要做的?谢谢!
在haproxy.cfg中注释掉以下行:
原文链接:https://www.f2er.com/ubuntu/347633.htmluser haproxy group haproxy
并重新启动haproxy.