🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
### 安装Keepalived: 我们可以重各种发行版的软件仓库安装Keepalived,或者从编代码编译安装。虽然重软件仓库进行安装通常是最快的方法,但版本可能是落后的。 centos: ~~~ yum install curl gcc openssl-devel libnl3-devel net-snmp-devel ~~~ ~~~ curl --progress http://keepalived.org/software/keepalived-1.2.15.tar.gz | tar xz cd keepalived-1.2.15 ./configure make sudo make install ~~~ 编译之后,创建一个`Init`脚本以控制Keepalived守护进程。 ~~~ ln -s /etc/rc.d/init.d/keepalived.init /etc/rc.d/rc3.d/S99keepalived ~~~