haproxy -f /etc/haproxy/haproxy.cfg -c 检查配置文件语法: haproxy -f /etc/haproxy/haproxy.cfg -c 如果报错的话会直接提示配置文件错误信息。