Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有几台运行 centOS 6 和 centOS 7 的服务器。我在库存系统中工作,为此我正在使用 ohai,它安装在所有机器上。
当我这样做时ssh myuser@myserver.com ohai,它会返回一个 json 对象,其中包含所有信息,但网络部分为空。但是,如果我 ssh 进入服务器并运行,ohai我将获得正确的网络属性。
ssh myuser@myserver.com ohai
ohai
有人知道会发生什么吗?谢谢!
我解决了,问题是 ohai 需要 root 权限才能检查 nics 属性。