不使用Sudo即可启动haproxy:启动前端http-in:无法绑定套接字

时间:2018-07-17 15:32:01

标签: centos7 haproxy

如果我确实对使用Sudoers的用户执行了haproxy(Oracle Linux 7.5)

/ data / haproxy / haproxy -f /etc/haproxy/haproxy.cfg

开始正常了。

如果我使用没有Sudoers权限的用户确实返回了错误:启动前端http-in:无法绑定套接字

[WARNING] 197/182406 (115694) : config : 'option forwardfor' ignored for frontend 'https-in' as it requires HTTP mode.
[WARNING] 197/182406 (115694) : config : 'option forwardfor' ignored for backend 'https-servers-basic' as it requires HTTP mode.
[WARNING] 197/182406 (115694) : config : 'option forwardfor' ignored for backend 'https-servers-redirect' as it requires HTTP mode.
[WARNING] 197/182406 (115694) : config : 'option forwardfor' ignored for backend 'https-servers-service' as it requires HTTP mode.
[ALERT] 197/182406 (115694) : Starting frontend http-in: cannot bind socket [0.0.0.0:80]
[ALERT] 197/182406 (115694) : Starting frontend https-in: cannot bind socket [0.0.0.0:443]

如何解决这个问题?

0 个答案:

没有答案