File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11ipcs
22===
33
4- 分析消息队列共享内存和信号量
4+ 分析消息队列共享内存和信号量
55
66## 补充说明
77
@@ -15,23 +15,49 @@ ipcs(选项)
1515
1616### 选项
1717
18+ #### 资源选项
19+
20+ ``` shell
21+ -a, --all 显示全部(默认值)
22+ -q, --queues 消息队列
23+ -m, --shmems 共享内存
24+ -s, --semaphores 信号量
25+ ```
26+
27+ #### 输出选项
28+
1829``` shell
19- -a:显示全部可显示的信息;
20- -q:显示活动的消息队列信息;
21- -m:显示活动的共享内存信息;
22- -s:显示活动的信号量信息。
30+ -t, --time 显示最后一次操作时间
31+ -p, --pid 显示创建者和最后一次操作者的PID
32+ -c, --creator 显示创建者和拥有者的 userid, groupid
33+ -l, --limits 显示对资源的限制
34+ -u, --summary 显示当前状态摘要
35+ --human 以友好的方式显示大小(eg: 500K)
36+ -b, --bytes 以字节为单位显示大小(仅影响` -l` 选项)
37+ ```
38+
39+ #### 通用选项
40+
41+ ``` shell
42+ -i, --id < id> 显示指定ID的资源
43+ -h, --help 显示帮助文档并退出
44+ -V, --version 显示版本信息并退出
2345```
2446
2547### 实例
2648
2749``` shell
2850ipcs -a
2951------ Shared Memory Segments --------
30- key shmid owner perms bytes nattch status
31- 0x7401833d 2654208 root 600 4 0
32- 0x00000000 3145729 root 600 4194304 9 dest
33- 0x7401833c 2621442 root 600 4 0
52+ key shmid owner perms bytes nattch status
53+ 0x7401833d 2654208 root 600 4 0
54+ 0x00000000 3145729 root 600 4194304 9 dest
55+ 0x7401833c 2621442 root 600 4 0
34560xd201012b 3080195 root 600 1720 2
3557```
3658
59+ ### 相关命令
60+
61+ * ` ipcrm ` : 删除 IPC 资源
62+ * ` ipcmk ` : 创建 IPC 资源
3763
You can’t perform that action at this time.
0 commit comments