救命啊,wsl中pg11出问题了,以前一直好好的
postgresql吧
全部回复
仅看楼主
level 1
wxwpxh 楼主
$ 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-03-24 08:12:57.882 DST [13389] LOG: listening on IPv4 address "127.0.0.1", port 5432
2019-03-24 08:12:57.882 DST [13389] LOG: listening on IPv4 address "127.0.0.1", port 5432
2019-03-24 08:12:57.893 DST [13389] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2019-03-24 08:12:57.955 DST [13390] LOG: database system was interrupted; last known up at 2019-03-24 08:05:05 DST
2019-03-24 08:12:57.955 DST [13390] PANIC: could not flush dirty data: Function not implemented
2019-03-24 08:12:57.956 DST [13389] LOG: startup process (PID 13390) was terminated by signal 6: Aborted
2019-03-24 08:12:57.956 DST [13389] LOG: aborting startup due to startup process failure
2019-03-24 08:12:57.962 DST [13389] LOG: database system is shut down
pg_ctl: could not start server
Examine the log output.
2019年03月24日 01点03分 1
level 1
wxwpxh 楼主
/usr/lib/postgresql/11/bin/initdb -D /var/lib/postgresql/11/main --auth-local peer --auth-host md5
后pg可以启动,但过几分钟后服务又自动停止,再次启动又是前面的错误,实在是没有办法了。
2019年03月27日 13点03分 2
初始化数据库后也没用啊,难道是wsl的问题?
2019年03月27日 14点03分
level 1
楼主解决了没有啊
2019年03月30日 07点03分 3
没搞定啊,wsl重装都不行
2019年03月30日 08点03分
level 1
wxwpxh 楼主
sudo vi /etc/postgresql/11/main/postgresql.conf

#fsync=on
改为
fsync=off
2019年05月02日 16点05分 5

2020年03月20日 14点03分
1