###使用環境
環境:Windows Subsystem for Linux( Ubuntu 18.04.2 LTS)
使用言語:postgreSQL(11.2)
発生している問題・エラーメッセージ
①WSLでpostgreSQLを入れようと思いこちらに従ってインストールした。
②入れた直後は、問題なくサーバーも起動し、作業用ユーザーとパスワードの設定をした。
③しかし、先程もう一度ubunntuを立ち上げると、postgreSQLのサーバーが立ち上がらず以下のようなエラーメッセージが出た。
$ sudo service postgresql start * Starting PostgreSQL 11 database server * Error: /usr/lib/postgresql/11/bin/pg_ctl /usr/lib/postgresql/11/bin/pg_ctl start -D /var/lib/postgresql/11/main -l /var/log/postgresql/postgresql-11-main.log -s -o -c config_file="/etc/postgresql/11/main/postgresql.conf" exited with status 1: 2019-04-17 14:17:16.951 DST [38] LOG: listening on IPv4 address "0.0.0.0", port 5432 2019-04-17 14:17:16.972 DST [38] LOG: listening on IPv6 address "::", port 5432 2019-04-17 14:17:17.095 DST [38] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" 2019-04-17 14:17:17.572 DST [39] LOG: database system was interrupted; last known up at 2019-04-16 22:40:21 DST 2019-04-17 14:17:17.576 DST [39] PANIC: could not flush dirty data: Function not implemented 2019-04-17 14:17:17.586 DST [38] LOG: startup process (PID 39) was terminated by signal 6: Aborted 2019-04-17 14:17:17.586 DST [38] LOG: aborting startup due to startup process failure 2019-04-17 14:17:17.600 DST [38] LOG: database system is shut down pg_ctl: could not start server Examine the log output. [fail]
また、$psqlコマンドにおいても
$su - postgres postgres@ユーザー名:~$ psql psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
このようなエラーメッセージが表示されるようになった。
試したこと
http://d.hatena.ne.jp/shishida/20130426/1366990851
https://qiita.com/YusukeHigaki/items/9bd0c21fbcc47e12b5c1
https://codeday.me/jp/qa/20190117/152873.html
https://askubuntu.com/questions/988140/postgresql-not-starting-on-ubuntu-16-04
これらのサイトを参考にしたが、解決には至らなかった。
二日ほど悩んでおり、お手上げ状態です。
ご回答宜しくお願い致します。
補足事項あればご指摘いただけると幸いです。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/04/17 23:21