在将行添加到/etc/haproxy/haproxy.cfg
作为创建透明代理的一部分之后,
source 0.0.0.0 usesrc clientip
Run Code Online (Sandbox Code Playgroud)
重新启动 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.
Run Code Online (Sandbox Code Playgroud)
我已经service haproxy reload
以root
. 我们还需要做什么?谢谢!