转载于:http://www.itxuexiwang.com/a/liunxjishu/2016/0220/151.html?1456381460

Keepalived+ nginx的安装部署

 
主机:IP->10.252.3.160  nginx已安装OK(省略)
备机:IP->10.252.3.161  nginx已安装OK(省略)
VIP:10.252.3.162
 
第一步:主备一起安装keepalived    
yum installkeepalived –y
第二步:配置/etc/keepalived/keepalived.conf
主机10.252.3.160配置如下:
!Configuration File for keepalived
global_defs{