PostgreSQL server won't stop

后端 未结 8 529
醉话见心
醉话见心 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: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
    

提交回复
热议问题