解決Windows2012 R2下安裝PostgreSQL報錯的問題
當前位置:點晴教程→知識管理交流
→『 技術文檔交流 』
![]() ![]() 一、環境說明1. Windows2012R2的版本見下,未打任何的OS補丁 ![]() 2. 采用的介質是postgresql-12.5-1-windows-x64.exe,從EDB公司下載的介質,已經驗算過該介質的SHA256,沒問題。 3. PostgreSQL12 x64bit是支持Windows 2102R2的,如下截圖來自 https://www.postgresql.org/download/windows/ ![]() 二、安裝報錯![]() 三、問題分析與解決眾所周知,在Windows下安裝部署用C開發的程序(比如OGG,比如vmware workstations等等),都需要安裝Microsoft Visual C++ 2015-2019 Redistributable,這個安裝包需要說明如下: 1. 該安裝包的下載網址是:https://support.microsoft.com/en-in/help/2977003/the-latest-supported-visual-c-downloads 2. 該安裝包區分x86、x64、ARM64,請注意務必下載正確 3. 該安裝包對Windwos版本的要求如下,來自于網址https://docs.microsoft.com/zh-cn/visualstudio/releases/2019/system-requirements 上述網址有如下的描述: “Visual C++ 2015-2019 Redistributable 支持與 Visual Studio 相同的系統要求”,那么就來看Visual Studio 2019對操作系統的要求,見下:
4. Visual C++ 2015, 2017 and 2019 all share the same redistributable files For example, installing the Visual C++ 2019 redistributable will affect programs built with Visual C++ 2015 and 2017 also. However, installing the Visual C++ 2015 redistributable will not replace the newer versions of the files installed by the Visual C++ 2017 and 2019 redistributables. 本文摘自:https://support.microsoft.com/en-in/help/2977003/the-latest-supported-visual-c-downloads 從如上分析可以看出,Visual C++ 2015-2019 Redistributable 在Windows2012R2下安裝,需要Windows2012R2帶有更新 2919355。我特意嘗試過當Windows2012R2不帶任何OS補丁的情況下去安裝Visual C++ 2015-2019 Redistributable,結果OS藍屏故障,進而導致OS重啟,所以,請務必為Windows2012R2安裝更新 2919355。 下面就來為Windows2012R2安裝更新 2919355 Windows2012R2的更新 2919355對應的補丁下載網址: 如下是打補丁的順序,請依次執行即可: 1. clearcompressionflag.exe 2. KB2919442 3. KB2975061 本補丁下載自http://support.microsoft.com/kb/2975061/ 4. KB2919355 若是不安裝KB2975061,那么在安裝KB2919355時將安裝將失敗,事件查看器中的錯誤代碼為 0x80070005。安裝KB2919355耗時1小時,需要重啟OS生效。 5. KB2932046,重啟os生效 6. KB2959977,重啟os生效 7. KB2937592,不需要重啟 8. KB2938439,重啟os生效 9. KB2934018,重啟os生效 以上九個步驟建議預留至少2個小時的時間進行OS補丁更新,請規劃好停機時間。 安裝完更新 2919355之后,再去運行postgresql-12.5-1-windows-x64.exe即可。 更多PostgreSQL知識問答、技術文章,請訪問PGFans問答社區:www.pgfans.cn 該文章在 2025/4/7 10:11:28 編輯過 |
關鍵字查詢
相關文章
正在查詢... |