加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

How completely uninstall PostgreSQL 9.X on Mac OSX

发布时间:2020-12-13 17:02:42 所属栏目:百科 来源:网络整理
导读:How completely uninstall PostgreSQL 9.X on Mac OSX This article is referenced fromstackoverflow: If installed PostgreSQL with homebrew ,enter brew uninstall postgresql If you used theEnterpriseDB installer,follow the following step. Run th

How completely uninstall PostgreSQL 9.X on Mac OSX

This article is referenced fromstackoverflow:

If installed PostgreSQL withhomebrew,enterbrew uninstall postgresql

If you used theEnterpriseDB installer,follow the following step.

Run the uninstaller on terminal window

sudo /Library/PostgreSQL/9.X/uninstall-postgresql.app/Contents/MacOS/installbuilder.sh

If installed with Postgres Installer,do:

open /Library/PostgreSQL/9.X/uninstall-postgresql.app

Remove the PostgreSQL and data folders. The Wizard will notify you that these were not removed.

sudo rm -rf /Library/PostgreSQL

Remove the ini file:

sudo rm /etc/postgres-reg.ini

Remove the PostgreSQL user using System Preferences -> Users & Groups.

  1. Unlock the settings panel by clicking on the padlock and entering your password.

  2. Select the PostgreSQL user and click on the minus button.

  3. Restore your shared memory settings:sudo rm /etc/sysctl.conf

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读