Ubuntu Server中怎样卸载keepalived

场景

在Ubuntu Server中进行安装keepalived ,如果安装过程中出现纰漏,想要重新安装keepalived或者就是想直接卸载keepalived。

我们在安装keepalived时指定过安装路径为 /usr/local/src/keepalived

./configure --prefix=/usr/local/keepalived

实现

所以在卸载时也需要先进入到安装目录

cd /usr/local/src/keepalived
make uninstall    #执行卸载

删除相关文件

rm -f /usr/local/sbin/keepalived
rm -f /usr/local/etc/rc.d/init.d/keepalived
rm -f /usr/local/etc/sysconfig/keepalived
rm -rf /usr/local/etc/keepalived
rm -f /usr/local/bin/genhash

删除完成后查看相关的几个目录

/usr/local/src

/usr/local

/etc

查询这几个目录下是否含有keepalived相关的目录或者文件,

文件使用rm -f **删除

文件夹使用rm -rf **删除

(0)

相关推荐