在Ubuntu Server中進行安裝keepalived ,若是安裝過程當中出現紕漏,想要從新安裝keepalived或者就是想直接卸載keepalived。code
咱們在安裝keepalived時指定過安裝路徑爲 /usr/local/src/keepalivedblog
./configure --prefix=/usr/local/keepalived
因此在卸載時也須要先進入到安裝目錄hash
cd /usr/local/src/keepalived
make uninstall #執行卸載
刪除相關文件it
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
刪除完成後查看相關的幾個目錄class
/usr/local/srckeepalived
/usr/local查詢
/etcdi
查詢這幾個目錄下是否含有keepalived相關的目錄或者文件,文件
文件使用rm -f **刪除make
文件夾使用rm -rf **刪除