Postgres服务未通过HomeBrew开始使用

时间:2019-07-16 13:09:45

标签: postgresql macos homebrew postgresql-9.5

在尝试使用自制软件在Mac上安装Postgres之后,我必须在macOS中安装自制软件。但是当我检查我的Postgres状态时,它没有运行。

/usr/local/Cellar/postgresql/11.4/bin/pg_ctl -D /usr/local/var/postgres start 

我已经尝试过使用该cmd,但是它只给我pg_ctl:无法启动服务器

2019-07-16 18:32:36.148 IST [9541] LOG:  listening on IPv4 address "127.0.0.1", port 5432
2019-07-16 18:32:36.149 IST [9541] LOG:  listening on Unix socket "/tmp/.s.PGSQL.5432"
2019-07-16 18:32:36.162 IST [9541] LOG:  could not open directory "pg_tblspc": No such file or directory
2019-07-16 18:32:36.166 IST [9542] LOG:  database system was interrupted; last known up at 2019-07-14 17:27:00 IST
2019-07-16 18:32:36.350 IST [9542] LOG:  could not open directory "pg_tblspc": No such file or directory
2019-07-16 18:32:36.350 IST [9542] LOG:  could not open directory "pg_tblspc": No such file or directory
2019-07-16 18:32:36.350 IST [9542] FATAL:  could not open directory "pg_replslot": No such file or directory
2019-07-16 18:32:36.350 IST [9541] LOG:  startup process (PID 9542) exited with exit code 1
2019-07-16 18:32:36.350 IST [9541] LOG:  aborting startup due to startup process failure
2019-07-16 18:32:36.352 IST [9541] LOG:  database system is shut down
 stopped waiting
pg_ctl: could not start server
Examine the log output.

我试图找到解决方案,但对我不起作用。

0 个答案:

没有答案