We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
卸载已安装的PostgreSQL
sudo /Library/PostgreSQL/16/uninstall-postgresql.app/Contents/MacOS/installbuilder.sh
which psql
卸载postgresql 时候,遇到问题: The data directory (/Library/PostgreSQL/16/data) and service user account (postgres) have not been removed.
打开终端应用程序。
运行以下命令以停止 PostgreSQL 服务:
sudo launchctl unload -w /Library/LaunchDaemons/org.postgresql.postgres.plist
运行以下命令以删除 PostgreSQL:
sudo rm -rf /Library/PostgreSQL
最后,运行以下命令以删除 PostgreSQL 用户:
sudo dscl . delete /Users/postgres
完成后,您应该已经成功删除了 PostgreSQL
The text was updated successfully, but these errors were encountered:
No branches or pull requests
卸载已安装的PostgreSQL
打开终端应用程序。
运行以下命令以停止 PostgreSQL 服务:
运行以下命令以删除 PostgreSQL:
最后,运行以下命令以删除 PostgreSQL 用户:
完成后,您应该已经成功删除了 PostgreSQL
The text was updated successfully, but these errors were encountered: