[HOW TO] Validate haproxy.cfg

In the morning I change the haproxy.cfg, but I don't want to restart the haproxy. Because it can make incident for our infrastructure.

So I think I need to validate haproxy configuration file. Luckily haproxy always support that. 

Way is 
/usr/sbin/haproxy -c -V -f /etc/haproxy/haproxy.cfg

Configuration file is valid

Good to see. I hope this help you to check the syntax of haproxy.cfg before restarting haproxy service.

Thank you,


Tiến Phan - R0039

Knowledge is Endless

Sharing for Success

0 nhận xét:

Post a Comment