haproxy 구성시 config의 값이 올바른지 확인하는 명령어
haproxy -f /etc/haproxy/haproxy.cfg -c
[root@mysql_haproxy haproxy]# haproxy -f /etc/haproxy/haproxy.cfg -c
[ALERT] 323/100938 (71) : parsing [/etc/haproxy/haproxy.cfg:23] : 'listen' cannot handle unexpected argument '0.0.0.0:3306'.
[ALERT] 323/100938 (71) : parsing [/etc/haproxy/haproxy.cfg:23] : please use the 'bind' keyword for listening addresses.
[ALERT] 323/100938 (71) : Error(s) found in configuration file : /etc/haproxy/haproxy.cfg
[ALERT] 323/100938 (71) : Fatal errors found in configuration.
[root@mysql_haproxy haproxy]# haproxy -f /etc/haproxy/haproxy.cfg -c
Configuration file is valid
[root@mysql_haproxy haproxy]#