[HOW TO] validate haproxy configuration

I just changed haproxy.cfg. I want to ensure haproxy.conf is valid before restarting haproxy service.

So I check haproxy manual
$man haproxy

I see paremetter -c -V and -f which validate the syntax.

Finally I use this to validate
haproxy -c -V -f /etc/haproxy/haproxy.cfg

I hope this helps anyone looking to check the synctax haproxy.cfg

Tiến Phan - R0039

Knowledge is Endless

Sharing for Success

0 nhận xét:

Post a Comment