语法高亮,滚动条美化,设置页面调整

This commit is contained in:
fofolee
2019-04-19 02:41:09 +08:00
parent 1e8f76c000
commit 359d29ee0b
1590 changed files with 12328 additions and 11441 deletions

View File

@@ -3,17 +3,17 @@
<h2 id="补充说明">补充说明</h2>
<p><strong>ifstat命令</strong> 就像iostat/vmstat描述其它的系统状况一样是一个统计网络接口活动状态的工具。ifstat工具系统中并不默认安装需要自己下载源码包重新编译安装使用过程相对比较简单。</p>
<h3 id="下载">下载</h3>
<pre><code>http://gael.roualland.free.fr/ifstat/ (官网)
<pre><code class="language-bash">http://gael.roualland.free.fr/ifstat/ (官网)
wget http://gael.roualland.free.fr/ifstat/ifstat-1.1.tar.gz</code></pre>
<h3 id="编译安装">编译安装</h3>
<pre><code>tar -zxvf ifstat-1.1.tar.gz
<pre><code class="language-bash">tar -zxvf ifstat-1.1.tar.gz
cd ifstat-1.1
./configure
make
make install # 默认会安装到/usr/local/bin/目录中</code></pre>
<p>注释:执行<code>which ifstat</code>输出<code>/usr/local/bin/ifstat</code></p>
<h3 id="选项">选项</h3>
<pre><code>-l 监测环路网络接口lo。缺省情况下ifstat监测活动的所有非环路网络接口。经使用发现加上-l参数能监测所有的网络接口的信息而不是只监测 lo的接口信息也就是说加上-l参数比不加-l参数会多一个lo接口的状态信息。
<pre><code class="language-bash">-l 监测环路网络接口lo。缺省情况下ifstat监测活动的所有非环路网络接口。经使用发现加上-l参数能监测所有的网络接口的信息而不是只监测 lo的接口信息也就是说加上-l参数比不加-l参数会多一个lo接口的状态信息。
-a 监测能检测到的所有网络接口的状态信息。使用发现,比加上-l参数还多一个plip0的接口信息搜索一下发现这是并口网络设备中有一 个叫PLIP (Parallel Line Internet Protocol). 它提供了并口...
-z 隐藏流量是无的接口,例如那些接口虽然启动了但是未用的
-i 指定要监测的接口,后面跟网络接口名
@@ -31,13 +31,13 @@ make install # 默认会安装到/usr/local/bin/目录中</code></pre>
-d 指定一个驱动来收集状态信息</code></pre>
<h3 id="实例">实例</h3>
<p>默认使用</p>
<pre><code>[root@localhost ifstat-1.1] #ifstat
<pre><code class="language-bash">[root@localhost ifstat-1.1] #ifstat
eth0 eth1
KB/s in KB/s out KB/s in KB/s out
0.07 0.20 0.00 0.00
0.07 0.15 0.58 0.00</code></pre>
<p>默认ifstat不监控回环接口显示的流量单位是KB。</p>
<pre><code>[root@localhost ifstat-1.1]# ifstat -tT
<pre><code class="language-bash">[root@localhost ifstat-1.1]# ifstat -tT
time eth0 eth1 eth2 eth3 Total
HH:MM:ss KB/s in KB/s out KB/s in KB/s out KB/s in KB/s out KB/s in KB/s out KB/s in KB/s out
16:53:04 0.84 0.62 1256.27 1173.05 0.12 0.18 0.00 0.00 1257.22 1173.86
@@ -46,7 +46,7 @@ HH:MM:ss KB/s in KB/s out KB/s in KB/s out KB/s in KB/s out KB/s in
16:53:07 0.57 0.40 1.91 2.61 0.00 0.00 0.00 0.00 2.48 3.01
16:53:08 0.73 0.40 924.02 1248.91 0.00 0.00 0.00 0.00 924.76 1249.31</code></pre>
<p>监控所有网络接口</p>
<pre><code>[root@localhost ifstat-1.1] # ifstat -a
<pre><code class="language-bash">[root@localhost ifstat-1.1] # ifstat -a
lo eth0 eth1
KB/s in KB/s out KB/s in KB/s out KB/s in KB/s out
0.00 0.00 0.28 0.58 0.06 0.06