2019-04-20 13:36:40 +08:00

21 lines
1.2 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<h1 id="ipcs">ipcs</h1>
<p>分析消息队列共享内存和信号量</p>
<h2 id="补充说明">补充说明</h2>
<p><strong>ipcs命令</strong> 用于报告Linux中进程间通信设施的状态显示的信息包括消息列表、共享内存和信号量的信息。</p>
<h3 id="语法">语法</h3>
<pre><code class="language-bash">ipcs(选项)</code></pre>
<h3 id="选项">选项</h3>
<pre><code class="language-bash">-a显示全部可显示的信息
-q显示活动的消息队列信息
-m显示活动的共享内存信息
-s显示活动的信号量信息。</code></pre>
<h3 id="实例">实例</h3>
<pre><code class="language-bash">ipcs -a
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x7401833d 2654208 root 600 4 0
0x00000000 3145729 root 600 4194304 9 dest
0x7401833c 2621442 root 600 4 0
0xd201012b 3080195 root 600 1720 2</code></pre>
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->