linux列出和删除共享内存段

List all shared memories in your Linux Systems
> $ ipcs -m

Delete specific one
> $ ipcrm -M 0x0001869c

如果是pg启动时报错,如下:

FATAL:  pre-existing shared memory block (key 5432001, ID 0) is still in use
HINT:  If you're sure there are no old server processes still running, remove the shared memory block with the command "ipcrm", or just delete the file "/var/lib/pgsql/data/postmaster.pid".

直接删除postmaster.pid文件即可。 

posted @   zhjh256  阅读(350)  评论(0编辑  收藏  举报
编辑推荐:
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
阅读排行:
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· Docker 太简单,K8s 太复杂?w7panel 让容器管理更轻松!
历史上的今天:
2020-07-18 虚拟机可以访问外网和主机,但是主机不能访问虚拟机的解决办法及NAT原理(亲测)
2019-07-18 Maven在jar中生成重复的pom.xml和pom.properties文件
2019-07-18 ORA-55624: 此时无法为闪回归档启用表
2018-07-18 Tomcat 7服务器线程模型
2018-07-18 抓取awr、语句级awr、ashrpt
点击右上角即可分享
微信分享提示