PostgreSQL server won't stop

后端 未结 8 531
醉话见心
醉话见心 2020-12-07 09:32

Having a bit of an issue with PostgreSQL on Mac OS X 10.8.4. I accidentally did brew rm postgresql --force while the postgres server was running. When I install

相关标签:
8条回答
  • 2020-12-07 10:15

    turns out that my brew.plist for postgres needed to be unloaded and removed at ~/Library/LaunchAgents/ . After a restart all is well... closing question.

    0 讨论(0)
  • 2020-12-07 10:18

    When relying on brew-installed PostgreSQL, the following command worked for shutting it down.

    > brew services stop postgresql
    
    stopping `postgresql`... (might take a while)
    ==> Successfully stopped `postgresql` (label: homebrew.mxcl.postgresql)
    

    As mentioned in another answer grepping through the list of processes and then killing anything postgres-related does not work.

    ps aux | grep postgres
    kill $PID
    
    0 讨论(0)
提交回复
热议问题