前提・実現したいこと
WSLでUbuntuを使ってPostgreSQLを起動したいです。
発生している問題・エラーメッセージ
* Starting PostgreSQL 10 database server * Error: /usr/lib/postgresql/10/bin/pg_ctl /usr/lib/postgresql/10/bin/pg_ctl start -D /var/lib/postgresql/10/main -l /var/log/postgresql/postgresql-10-main.log -s -o -c config_file="/etc/postgresql/10/main/postgresql.conf" exited with status 1: 2019-04-20 22:25:06.063 DST [43] LOG: listening on IPv4 address "127.0.0.1", port 5432 2019-04-20 22:25:06.103 DST [43] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" 2019-04-20 22:25:06.298 DST [44] LOG: database system was interrupted; last known up at 2019-04-20 15:10:02 DST 2019-04-20 22:25:06.299 DST [44] PANIC: could not flush dirty data: Function not implemented 2019-04-20 22:25:06.299 DST [43] LOG: startup process (PID 44) was terminated by signal 6: Aborted 2019-04-20 22:25:06.299 DST [43] LOG: aborting startup due to startup process failure 2019-04-20 22:25:06.307 DST [43] LOG: database system is shut down pg_ctl: could not start server Examine the log output.
試したこと
postgresql.conf ファイルに data_sync_retry = true または fsync=off を追記せよ、とありますね。
rm /usr/local/var/postgres/postmaster.pid
/var/run/postgresql/を覗いてみたら,あったファイルは .s.PGSQL.5433.あれ,ちゃんとあるしなぁ…
ん?5433?はぁ?ポート番号違ってんじゃん!すぐにpostgresql.confを書き換えて無事完了しました.
上記を試しましたがダメでした。
どうか、お力をお貸しください…。
補足情報(FW/ツールのバージョンなど)
ここにより詳細な情報を記載してください。
回答1件
あなたの回答
tips
プレビュー