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