tiup部署tidb数据库如何销毁删除
1.先用 TiUP 强制销毁
1 | tiup cluster list |
然后确认:
1 | tiup cluster list |
2.. 手工清理残留进程
1 | pkill -f blackbox_exporter |
确认:
1 | ps -ef | grep -E 'tidb|tikv|pd|prometheus|grafana|blackbox' | grep -v grep |
3. 清理 systemd 残留
查看
1 | systemctl list-units --type=service | grep -E 'tidb|tikv|pd|prometheus|grafana|blackbox|node_exporter' |
可能会看到类似:
1 | blackbox_exporter-9115.service |
停掉并删除:
1 | systemctl stop blackbox_exporter-9115.service |
如果不确定服务名,用批量方式:
1 | systemctl list-unit-files | grep -E 'tidb|tikv|pd|prometheus|grafana|blackbox|node_exporter' |
4. 清理目录
你的残留路径明确是:
1 | /tidb-deploy/monitor-9100/ |
可以清理:
1 | rm -rf /tidb-deploy |