【发布时间】:2017-05-21 20:00:16
【问题描述】:
在我的 linux 服务器中,当我在终端中输入“iftop”时,它会进入一个显示网络流量的小程序...
我正在寻找一种通过 shell_exec 回显最后 10 或 20 个连接输入/输出的方法...
echo '<hr>IFTOP -> <pre>'.shell_exec("iftop").'</pre><br>';
但上面写着 sh:iftop: command not found...
我试过ntop.org,但不是我要找的,我必须打开3000端口...
是否可以通过 echo shell_exec 显示最后的服务器连接? 欢迎使用任何 iftop 替代方案。
【问题讨论】:
标签: php network-traffic