keepalived配置
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 1、下载地址 https://www.keepalived.org/software/keepalived-2.0.19.tar.gz 2、编译安装 centos7环境 1、安装依赖库 yum install openssl-devel libnl3-devel ipset-devel iptables-devel make autoconf automake file-devel net-snmp-devel glib2-devel json-c-devel pcre2-devel libnftnl-devel libmnl-devel 2、解压缩 tar -xvf keepalived-2.0.19.tar.gz 3、进入目录 cd keepalived-2.0.19 4、编译安装 ./configure make make install 5、配置主节点 keepalived在启动时,会自动去/etc/keepalived下面找配置文件 mkdir /etc/keepalived vi /etc/keepalived/ keepalived.conf ! Configuration File for keepalived global_defs { # notification_email { #