gpt4 book ai didi

linux - 如何强行删除数据文件夹以及部分postgres9.1卸载脚本

转载 作者:太空宇宙 更新时间:2023-11-04 03:51:35 25 4
gpt4 key购买 nike

任何人都可以建议我如何作为 postgres 卸载脚本的一部分强制删除数据目录。

这是我在 postgres 安装目录下调用的脚本来卸载 postgres。

./uninstall-postgresql

目前我们收到警告消息,例如数据目录(/opt/DB/data) 和服务用户帐户(postgres) 尚未删除。

最佳答案

尝试 ./uninstall-postgresql --help./uninstall-postgresql help 看看是否有任何选项(最好是无法实际卸载它的用户,以避免灾难)。如果没有,您只需自己将命令添加到脚本中即可。

关于linux - 如何强行删除数据文件夹以及部分postgres9.1卸载脚本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26136458/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com