1.查看当前kingbase进程
[kingbase@kes2 ~]$ ps -ef | grep kingbase
kingbase 9289 1 0 03:39 ? 00:00:00 /opt/Kingbase/ES/V8/KESRealPro/V008R006C007B0024/Server/bin/kingbase -D /data/Kingbase
kingbase 9394 9289 0 03:39 ? 00:00:00 kingbase: logger
kingbase 9397 9289 0 03:39 ? 00:00:00 kingbase: checkpointer
kingbase 9398 9289 0 03:39 ? 00:00:00 kingbase: background writer
kingbase 9399 9289 0 03:39 ? 00:00:00 kingbase: walwriter
kingbase 9400 9289 0 03:39 ? 00:00:00 kingbase: autovacuum launcher
kingbase 9401 9289 0 03:39 ? 00:00:00 kingbase: stats collector
kingbase 9402 9289 0 03:39 ? 00:00:00 kingbase: kwr collector
kingbase 9403 9289 0 03:39 ? 00:00:00 kingbase: ksh writer
kingbase 9405 9289 0 03:39 ? 00:00:00 kingbase: ksh collector
kingbase 9406 9289 0 03:39 ? 00:00:00 kingbase: logical replication launcher
2.关闭kingbase
[kingbase@kes2 ~]$ sys_ctl stop
waiting for server to shut down.... done
server stopped
3.启动卸载控制台
cd /opt/Kingbase/ES/V8/Uninstall
./Uninstaller
===============================================================================
KingbaseES V8 (created with InstallAnywhere)
-------------------------------------------------------------------------------
Preparing CONSOLE Mode Uninstallation...
===============================================================================
Uninstall KingbaseES V8
-----------------------
About to uninstall...
KingbaseES V8
This will remove features installed by InstallAnywhere. It will not remove
files and folders created after the installation.
PRESS <ENTER> TO CONTINUE:
回车
正在卸载
===============================================================================
Uninstalling...
---------------
...*
*
*************************
*************************
*************************
************************
4.删除数据目录
[kingbase@kes2 Uninstall]$ rm -rf /data/Kingbase/*
[kingbase@kes2 Uninstall]$ ll /data/Kingbase/
5.清理软件目录残余文件
[kingbase@kes2 V8]$ rm -rf /opt/Kingbase/ES/V8/*
[kingbase@kes2 V8]$ ll /opt/Kingbase/ES/V8/
total 0