Linux奇技淫巧:如何从浏览器监视Linux服务器资源
点击上方“程序员大白”,选择“星标”公众号
重磅干货,第一时间送达
来自:https://www.linuxmi.com/linux-scout_realtime-top.html
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+ 上]
/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
/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:
then point your browser to: http://localhost: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: http://your-ip-or-hostname:5555
* "scout_realtime stop" to stop the daemon
$ sudo ufw allow 27017
$sudo ufw reload
$ sudo iptables -A INPUT -p tcp --dport 5555 -j ACCEPT
$ sudo service iptables restart
$ sudo firewall-cmd --permanent --add-port=5555/tcp
$ sudo firewall-cmd reload
或者
http://ip-address-or-domain.com:5555
推荐阅读
关于程序员大白
程序员大白是一群哈工大,东北大学,西湖大学和上海交通大学的硕士博士运营维护的号,大家乐于分享高质量文章,喜欢总结知识,欢迎关注[程序员大白],大家一起学习进步!
评论