加入收藏 | 设为首页 | 会员中心 | 我要投稿 开发网_商丘站长网 (https://www.0370zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

如何从浏览器监视Linux服务器资源

发布时间:2022-11-05 12:36:43 所属栏目:Linux 来源:
导读:  过去,我们介绍了许多用于监视Linux性能的基于命令行的工具,这里仅举几个例子。例如top,htop,atop,glance等linux浏览器,以及许多基于Web的工具,例如cockpit,pydash,linux-dash。你还可以在web服务器模式
  过去,我们介绍了许多用于监视Linux性能的基于命令行的工具,这里仅举几个例子。例如top,htop,atop,glance等linux浏览器,以及许多基于Web的工具,例如cockpit,pydash,linux-dash。你还可以在web服务器模式下运行glance来监视远程服务器。除此之外,我们还发现了另一个我们希望与您共享的简单服务器监视工具,名为Scout_Realtime。Scout_Realtime是一个简单,易于使用的基于Web的工具,用于以一种类似top的方式实时监视Linux服务器指标。它显示了有关从CPU,内存,磁盘,网络和进程(前10名)实时收集的指标的流畅图表。
 
  linux浏览器_手机浏览l器_uc浏览起器下载最新版
 
  实时Linux服务器进程监控在本文中,我们将向您展示如何在Linux系统上安装scout_realtime监视工具以监视远程服务器。在Linux中安装Scout_Realtime监控工具1、要在Linux服务器上安装scout_realtime,必须使用以下命令在服务器上安装Ruby 1.9.3+。linuxmi@linuxmi:~/www.linuxmi.com$ sudo apt-get install rubygems [在 Debian/Ubuntu 上]
 
  linuxmi@linuxmi:~/www.linuxmi.com$ sudo yum -y install rubygems-devel [在 RHEL/CentOS 上]
 
  linuxmi@linuxmi:~/www.linuxmi.com$ sudo dnf -y install rubygems-devel [在 Fedora 22+ 上]
 
  uc浏览起器下载最新版_linux浏览器_手机浏览l器
 
  来自:https://www.linuxmi.com/linux-scout_realtime-top.html2、在Linux系统上安装了Ruby之后,现在可以使用以下命令安装scout_realtime包。linuxmi@linuxmi:~/www.linuxmi.com$ sudo gem install scout_realtime
 
  uc浏览起器下载最新版_手机浏览l器_linux浏览器
 
  3、成功安装scout_realtime软件包后,接下来,您需要启动scout_realtime守护程序,该守护程序将实时收集服务器指标,如图所示。linuxmi@linuxmi:~/www.linuxmi.com$ scout_realtime
 
  /var/lib/gems/2.7.0/gems/scout_realtime-1.0.5/lib/vendor/sinatra-1.4.4/lib/sinatra/base.rb:1208: warning: constant ::Fixnum is deprecated
 
  /var/lib/gems/2.7.0/gems/scout_realtime-1.0.5/lib/vendor/sinatra-1.4.4/lib/sinatra/base.rb:1208: warning: constant ::Fixnum is deprecated
 
  linux浏览器_手机浏览l器_uc浏览起器下载最新版
 
  /var/lib/gems/2.7.0/gems/scout_realtime-1.0.5/lib/vendor/sinatra-1.4.4/lib/sinatra/base.rb:1208: warning: constant ::Fixnum is deprecated
 
  /var/lib/gems/2.7.0/gems/scout_realtime-1.0.5/lib/vendor/sinatra-1.4.4/lib/sinatra/base.rb:1208: warning: constant ::Fixnum is deprecated
 
  /var/lib/gems/2.7.0/gems/scout_realtime-1.0.5/lib/vendor/sinatra-1.4.4/lib/sinatra/base.rb:1208: warning: constant ::Fixnum is deprecated
 
  Daemon has started successfully
 
  To view in your browser, do ONE of the following:A) create an SSH tunnel: ssh -NL 5555:localhost:5555 user@ip_or_hostname (run that command on your own computer, not the server)
 
  then point your browser to: :5555
 
  --- OR ---
 
  B) open a port in your firewall: sudo iptables -A INPUT -p tcp --dport 5555 -j ACCEPT (run that command on your server)
 
  then point your browser to: :5555* FYI, the log file is: /home/linuxmi/.scout/scout_realtime.log
 
  * "scout_realtime stop" to stop the daemon
 
  linux浏览器_手机浏览l器_uc浏览起器下载最新版
 
  在服务器上启动Scout Realtime4、现在,scout_realtime守护程序正在您要在端口5555上进行远程监视的Linux服务器上运行。如果正在运行防火墙,则需要在防火墙中打开scout_realtime侦听的端口5555,以允许对其发出请求。---------- 在 Debian/Ubuntu 上----------
 
  $ sudo ufw allow 27017
 
  $sudo ufw reload---------- 在 RHEL/CentOS 6.x 上 ----------
 
  $ sudo iptables -A INPUT -p tcp --dport 5555 -j ACCEPT
 
  $ sudo service iptables restart---------- 在 RHEL/CentOS 7.x 上----------
 
  $ sudo firewall-cmd --permanent --add-port=5555/tcp
 
  $ sudo firewall-cmd reload5、现在,从任何其他机器上,打开Web浏览器,然后使用下面的URL访问scout_realtime来监视远程Linux服务器的性能。:5555
 
  或者
 
  :5555
 
  手机浏览l器_linux浏览器_uc浏览起器下载最新版
 
  6、默认情况下,scout_realtime日志写在系统上的.scout/scout_realtime.log中,您可以使用cat命令查看。linuxmi@linuxmi:~$ cat .scout/scout_realtime.log
 

(编辑:开发网_商丘站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!