pre-existing shared memory block (key 5432001, ID 2883585) is still in use


記一次postgresql啟動異常解決方法:

啟動postgresql時,提示:

pre-existing shared memory block (key 5432001, ID 2883585) is still in use

Terminate any old server processes associated with data directory

 

網上有直接刪除postmaster.pid文件的解決方法,但對我這個不管用

最后解決方法是直接干掉內存塊,運行命令:ipcs -m 2883585

然后重啟pgsql,就恢復正常了!


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM