Sorry to ask such a silly question as i am noob in unix. what are the unix commands to find shared memory and message queue and how to kill them ?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
ipcs(1)
provides information on the IPC facilities and ipcrm(1)
can be used to remove the IPC objects from the system.
List shared memory segments:
ipcs -m
List message queues:
ipcs -q
Remove shared memory segment created with shmkey
:
ipcrm -M key
Remove shared memory segment identified by shmid
:
ipcrm -m id
Remove message queue created with msgkey
:
ipcrm -Q key
Remove message queue identified by msgid
:
ipcrm -q id