![在 Windows Server 2003 x64 上安装 postgresql 9.3.4 时出现问题](https://linux22.com/image/632248/%E5%9C%A8%20Windows%20Server%202003%20x64%20%E4%B8%8A%E5%AE%89%E8%A3%85%20postgresql%209.3.4%20%E6%97%B6%E5%87%BA%E7%8E%B0%E9%97%AE%E9%A2%98.png)
您好,我确实尽我所能在我的 Windows 2003 Server x64 上安装 PostgreSQL 9.3.4,但总是出现这个错误:
请查看错误:http://oi57.tinypic.com/s4tb8i.jpg
我真的不知道该怎么办,如果我单击“确定”,那么当我转到 Windows 服务列表时,我找不到 PostgreSQL 服务,所以我无法启动该服务。
谁能帮助我正确安装它?
附言:我已遵循以下所有步骤:wiki.postgresql.org/wiki/Troubleshooting_Installation
非常感谢 。
这里是安装程序日志*,其中我得到“无法使用 initdb 初始化数据库集群”:
Called IsVistaOrNewer()...
'winmgmts' object initialized...
Version:5.2
MajorVersion:5
Ensuring we can write to the data directory (using cacls):
Executing batch file 'rad22ADE.bat'...
processed dir: C:\Program Files\PostgreSQL\9.2\data
Executing batch file 'rad22ADE.bat'...
The files belonging to this database system will be owned by user "Administrator".
This user must also own the server process.
The database cluster will be initialized with locale "English_United States.1252".
The default text search configuration will be set to "english".
fixing permissions on existing directory C:/Program Files/PostgreSQL/9.2/data ... initdb: could not change permissions of directory "C:/Program Files/PostgreSQL/9.2/data": Permission denied
Called Die(Failed to initialise the database cluster with initdb)...
Failed to initialise the database cluster with initdb
Script stderr:
Program ended with an error exit code
Error running cscript //NoLogo "C:\Program Files\PostgreSQL\9.2/installer/server/initcluster.vbs" "NT AUTHORITY\NetworkService" "postgres" "****" "C:\Program Files\PostgreSQL\9.2" "C:\Program Files\PostgreSQL\9.2\data" 5432 "DEFAULT" 0 : Program ended with an error exit code
Problem running post-install step. Installation may not complete correctly
The database cluster initialisation failed.
Creating Uninstaller
Creating uninstaller 25%
Creating uninstaller 50%
Creating uninstaller 75%
Creating uninstaller 100%
Installation completed
Log finished 05/02/2014 at 04:04:04
答案1
我在 32 位 2003 服务器上遇到了完全相同的问题。
由于某种原因,它似乎在同一部分,即数据目录的权限设置上失败了。
我以为它失败了,因为我只有 Service Pack 1,它没有附带 icalcs.exe(它是在 SP2 中引入的),但即使升级到 SP2 后它仍然失败。
通过在重新运行安装程序之前为每个人设置对数据的完全控制权限来暂时修复此问题。我仍在调查原因并寻找永久解决方案。
答案2
我建议您尝试使用他们提供的二进制文件手动安装它:这里