执行PKServermgrUI.exe,等了1分钟,界面也没有显示任何进程;查看此时的pkservermgr.exe黑窗口,提示数据库连接失败。
进入bin目录,执行start_pgsql.bat,窗口过会关闭
查看日志log/postgres.log,提示:
2021-02-27 17:10:06.557 HKT [4800] FATAL: could not remove old lock file "postmaster.pid": Permission denied
2021-02-27 17:10:06.557 HKT [4800] HINT: The file seems accidentally left over, but it could not be removed. Please remove the file by hand and try again.
将pgdata目录的安全属性中,Users的权限改为和管理员一样,重启解决