| rtop 是一个简单的、无代理的远程服务器监控工具,可通过 SSH 运行。它不需要在远程机器上安装任何代理软件。 |
它的工作原理是建立一个 SSH 会话,并在远程服务器上运行命令来收集系统信息,例如 CPU、磁盘、内存、网络。它每隔几秒钟就会刷新一次信息,就像 top 命令一样。
系统环境
安装golang
检查一下系统是否安装golang:
[root@server1 ~]# rpm -qa|grep golang
发现没有安装,下面使用yum list golang命令查看一下远程仓库里面是否有改安装包:
[root@server1 ~]# yum list golang Repository AppStream is listed more than once in the configuration Repository extras is listed more than once in the configuration Repository PowerTools is listed more than once in the configuration Repository centosplus is listed more than once in the configuration Available Packages golang.x86

rtop是一个通过SSH连接远程服务器并收集系统信息(如CPU、磁盘、内存和网络)的工具。在Centos8上安装golang后,通过go get安装rtop可能遇到问题,需要手动下载依赖。完成安装后,rtop二进制文件位于$GOPATH/bin,可以通过添加远程主机信息来运行监控,刷新间隔默认为5秒,可调整为2秒等自定义值。
最低0.47元/天 解锁文章
949

被折叠的 条评论
为什么被折叠?



