Remember a PG error

Remember a PG error

Error Messages

Problem running post-install step. Installation may not complete correctly Failed to start the database server.

It seems to be saying PG db server does not start.

serverices.msc view PG service in the end did not play together.

Find the postgresql-x64-11service really did it, but not from the manual. Error Messages

Windows 无法启动 postgresql-x64-11 服务(位于 本地计算机 上)。
错误 1053: 服务没有及时响应启动或控制请求。

PostgreSQL windows service failed to start

According to the above article, find their installation location (choose during installation) pg_ctl under.

I was selected D:\pg\

Then enter from powershell (administrator) in D:\pg\bin>

Then enter the following command

 .\pg_ctl.exe  -D "C:\Program Files\PostgreSQL\11\data" start

Finally console output code pleasant

2019-12-20 13:18:01.818 HKT [34480] 日志:  正在监听IPv4地址"0.0.0.0",端口 5432
2019-12-20 13:18:01.871 HKT [34480] 日志:  日志输出重定向到日志收集进程
2019-12-20 13:18:01.871 HKT [34480] 提示:  后续的日志输出将出现在目录 "log"中.
 完成
服务器进程已经启动

Guess you like

Origin www.cnblogs.com/marvelousone/p/12072710.html