LoginSignup
0
1

More than 5 years have passed since last update.

macOSでPostgreSQL(brew)が起動しない場合の対処法

Last updated at Posted at 2017-03-25

macOSで再起動後に自動起動設定済みのPostgreSQLが起動しなくなった。

  • macOS 10.12.3
  • PostgreSQL 9.6.2

PostgreSQLはbrew経由でインストールしています。
brew services listで確認すると、startedというステータスなのにプロセスが確認できない状態でした。

そこで、以下のコマンドで起動するとpidファイルが残っているというエラーメッセージが出ました。

kntmrkm:~/Library/LaunchAgents $ postgres -D /usr/local/var/postgres
FATAL:  lock file "postmaster.pid" already exists
HINT:  Is another postmaster (PID 510) running in data directory "/usr/local/var/postgres"?

pidファイルを削除すると無事起動することができました。


Created with NOOTO

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1