gpt4 book ai didi

windows - initdb : could not execute command, postgres.exe"--boot -x1 -F ": 没有错误

转载 作者:可可西里 更新时间:2023-11-01 10:46:22 25 4
gpt4 key购买 nike

我的安装失败并出现以下问题:

 [exec] initdb: could not execute command ""D:/SASHome9.4/SASWebInfrastructurePlatformDataServer/9.4/bin/postgres.exe" --boot -x1 -F ": No error
[exec] initdb: removing data directory "C:/SAS/EBIServer/Lev1/WebInfrastructurePlatformDataServer/data"
[exec] Result: 1

运行安装的帐户是管理员。用户和每个人都可以完全控制 D: & C: 和所有子目录,包括/WebInfrastructurePlatformDataServer。

COMSPEC环境变量正确,指向C:\Windows\System32\cmd.exe

没有尾随分号,从命令行调用 %COMSPEC% 返回正确路径,执行 echo“test ok”测试返回“test ok”。

我不确定还需要检查什么。我访问过的大多数其他页面/博客/论坛都说这是 COMSPEC 的问题,但到目前为止我的情况并非如此。

在上面的例子中,\data 没有被创建。当我们使用 D: 时出现相同的症状。

谢谢。

最佳答案

安装的账号不能是Administrator,应该是postgres之类的用户,同时还要修改cmd.exe的权限,让postgres可以执行。

关于windows - initdb : could not execute command, postgres.exe"--boot -x1 -F ": 没有错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23539508/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com