标签归档:haproxy

haproxy安装注意事项

如果用于转发

请在系统 

# 
echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.conf 
# 
echo "net.ipv4.ip_nonlocal_bind = 1" >> /etc/sysctl.conf 
# 
sysctl -p

In /etc/sysconfig/selinux , change the following lines:

#
sed -i 's/\(^SELINUX=\).*/\SELINUX=disabled/' /etc/sysconfig/selinux
sed -i 's/\(^SELINUX=\).*/\SELINUX=disabled/' /etc/selinux/config

reboot, and verify the selinux status by running ‘sestatus‘. It should say:

SELinux status: disabled