将该行添加到/etc/haproxy/haproxy.cfg作为创build透明代理的一部分之后 ,
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身份运行service haproxy reload 。 还有什么我们必须做的? 谢谢!
注释掉haproxy.cfg中的以下行:
user haproxy group haproxy
并重新启动haproxy。