4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

PostgreSQLを初回起動しようとすると起動しない

4
Posted at

CentOS環境でPostgreSQLを起動しようとしたら失敗しました。

sudo /etc/init.d/postgresql start

/var/lib/pgsql/data is missing. Use "service postgresql initdb" to initialize the cluster first.
                                                           [失敗]

これはメッセージにあるようにservice postgresql initdbを実行すればいいようです。

sudo service postgresql initdb
Initializing database:                                     [  OK  ]

dbを初期化したということでしょうか。

sudo /etc/init.d/postgresql start
postgresql サービスを開始中:                               [  OK  ]

PostgreSQLが起動しました。

4
3
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
4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?