keepalived 虚拟机环境内存泄露
centos7 自动的keepalived 版本是1.3.5 , 在虚拟机下运行时存在vrrp 导致的内存泄漏.
Memory leak on raw vrrp socket ? #839
下载编译打包 keepalived 2.2.8
yum install rpm-build
yum install wget
yum install kernel-devel
yum install rpm-build make gcc openssl-devel popt-devel kernel-devel ipvsadm
yum install aclocal autoheader automake autoreconf
yum install net-snmp-devel
yum install net-snmp-devel -y
yum install openssl-devel
yum install kernel-headers
yum install gcc rpm-build rpm-devel rpmlint make coreutils diffutils patch rpmdevtools
yum install net-snmp-devel
yum install libnl-devel
yum install net-snmp net-snmp-utils net-snmp-libs
yum install kmod-devel systemd-devel
rpmdev-setuptree
cp keepalived-2.2.8.tar.gz rpmbuild/SOURCES/
#下载keepalived 2.2.8
wget https://www.keepalived.org/software/keepalived-2.2.8.tar.gz --no-check-certificate
tar xf keepalived-2.2.8.tar.gz
cd keepalived-2.2.8
#configure
./autogen.sh
./configure --enable-snmp
#compile and create rpm
rpmbuild -ba keepalived.spec
keepalived-2.2.8-1.el7.x86_64.rpm 位置
[root@d1918be059ac ~]# find rpmbuild/ |grep rpm$
rpmbuild/RPMS/x86_64/keepalived-2.2.8-1.el7.x86_64.rpm
rpmbuild/RPMS/x86_64/keepalived-debuginfo-2.2.8-1.el7.x86_64.rpm
rpmbuild/SRPMS/keepalived-2.2.8-1.el7.src.rpm
#安装
yum install keepalived-2.2.8-1.el7.x86_64.rpm