簡體   English   中英

initdb:無法執行命令,postgres.exe“ --boot -x1 -F”:沒有錯誤

[英]initdb: could not execute command, postgres.exe“ --boot -x1 -F ”: No error

我的安裝失敗,出現以下情況:

 [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執行。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM