Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
很抱歉问这样一个愚蠢的问题,因为我是 unix 中的菜鸟。查找共享内存和消息队列的 unix 命令是什么以及如何杀死它们?
ipcs(1)提供有关 IPC 设施的信息,ipcrm(1)并可用于从系统中删除 IPC 对象。
ipcs(1)
ipcrm(1)
列出共享内存段:
ipcs -m
列出消息队列:
ipcs -q
删除使用创建的共享内存段shmkey:
shmkey
ipcrm -M key
删除由 标识的共享内存段shmid:
shmid
ipcrm -m id
删除使用创建的消息队列msgkey:
msgkey
ipcrm -Q key
删除由 标识的消息队列msgid:
msgid
ipcrm -q id