場景 在Ubuntu Server中進行安裝keepalived ,如果安裝過程中出現紕漏,想要重新安裝keepalived或者就是想直接卸載keepalived。 我們在安裝keepalived時指定過安裝路徑為 /usr/local/src/keepalived ./configure --pr ...
場景
在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 **刪除