环境:Vmware Workstation 10,CentOS-7-x86_64-DVD-1511.iso,Xshell 4.0,ip1:192.168.216.140.
[root@localhost ~]# yum list ipvsadm*
可安装的软件包
ipvsadm.x86_64 1.27-7.el7 base
[root@localhost ~]# yum install ipvsadm
[root@localhost ~]# yum list keepalived*
可安装的软件包
keepalived.x86_64 1.2.13-8.el7 base
[root@localhost ~]# yum install keepalived
[root@localhost ~]# keepalived -v
Keepalived v1.2.13 (11/05,2016)
[root@localhost ~]# service keepalived start
Redirecting to /bin/systemctl start keepalived.service
[root@localhost ~]# service keepalived status
Redirecting to /bin/systemctl status keepalived.service
● keepalived.service - LVS and VRRP High Availability Monitor
Loaded: loaded (/usr/lib/systemd/system/keepalived.service; disabled; vendor preset: disabled)
Active: active (running) since 四 2017-05-25 09:53:36 CST; 17s ago
Process: 2815 ExecStart=/usr/sbin/keepalived $KEEPALIVED_OPTIONS (code=exited, status=0/SUCCESS)