FATAL ERROR lock file “postmaster.pid” already exists

后端 未结 7 1727
故里飘歌
故里飘歌 2021-02-03 20:26

I have recently installed PostGIS on my Mac (El Capitan 10.11.4, Postgres is version 9.5.1) using Homebrew, and I am following these instructions - http://morphocode.com/how-to-

7条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-03 20:53

    It often happens to me in OSx, when my system shutdown unexpectedly.

    You can just remove the file postmaster.pid.

    cd Library/Application Support/Postgres/var-{postgres-version}
    

    and remove the postmaster.pid file

    restart the Postgres by using this command

    pg_ctl -D /usr/local/var/postgres restart
    

提交回复
热议问题