我尝试iotop
在 linux 上安装sudo apt-get install iotop
和sudo apt-get install iotop -y
。但是当iotop
在控制台中输入时,我收到错误消息:command not found
。安装似乎非常简单(https://lintut.com/install-iotop-on-linux/) - 并且安装正常执行而不会返回错误消息,所以很难告诉我我可能做错了什么。 。
任何提示表示赞赏。
我在浏览网页时发现了更多相关问题: http://www.linuxquestions.org/questions/linux-newbie-8/anybody-knows-how-to-install-iotop-839411/
尤其是这个: https: //access.redhat.com/solutions/194893和这个: https: //bugs.debian.org/cgi-bin/bugreport.cgi?bug =497360
我的内核版本(当输入 -uname 时)是 3.16.0-4-amd64。
小智 4
运行 withsudo
为我解决了这个问题。原来的海报发布说
当我运行 /usr/sbin/iotop 时,我收到错误消息: Netlink 错误:不允许操作 (1) iotop 依赖的 Linux 内核接口现在需要 root 权限或 NET_ADMIN 功能。发生此更改是因为发现了一个安全问题 (CVE-2011-2494),该问题允许跨用户边界泄露敏感数据。如果您需要以非 root 用户身份运行 iotop,请配置 sudo 以允许您以 root 身份运行 iotop。因此,我能够使用 root 用户的 sudo /usr/sbin/iotop 运行该应用程序。
在已删除的评论中 - 所以问题与权限有关,使用 sudo 运行可以解决这个问题。