安装ruby1.9.3-p0及redmon来监控redis
首先来个前戏: redmon 的监控页面没有任何文字说明,仅仅就其README里面的信息来说,应该是通过ruby on rails来实现的。对于这门语言无任何涉猎的情况开始一下安装之旅。
$ wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.tar.gz $ tar xzvf ruby-1.9.3-p0.tar.gz $ cd ruby-1.9.3-p0 $ ./configure --prefix=/usr/local --enable-shared --disable-install-doc --with-opt-dir=/usr/local/lib $ make $ make install
结果发现问题:
It seems your ruby installation is missing psych (for YAML output). To eliminate this warning, please install libyaml and reinstall your ruby.
从源码安装
$ wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz $ tar xzvf yaml-0.1.4.tar.gz $ cd yaml-0.1.4 $ ./configure --prefix=/usr/local $ make $ make install
然后再清理ruby-1.9.3-p0里面的安装文件,重新来一遍,总算ruby安装成功!
二、安装rails
提示如下错误:Fetching source index for http://rubygems.org/ Could not reach rubygems repository http://rubygems.org/ Could not find multi_json-1.0.4 in any of the sources
[#16 root@com8-16 redmon]# gem install activesupport -r -V GET http://rubygems.org/latest_specs.4.8.gz 302 Found GET http://production.s3.rubygems.org/latest_specs.4.8.gz connection reset after 1 requests, retrying GET http://production.s3.rubygems.org/latest_specs.4.8.gz connection reset after 1 requests, retrying GET http://rubygems.org/quick/Marshal.4.8/activesupport-3.1.3.gemspec.rz connection reset after 2 requests, retrying GET http://rubygems.org/quick/Marshal.4.8/activesupport-3.1.3.gemspec.rz 302 Found GET http://production.cf.rubygems.org/quick/Marshal.4.8/activesupport-3.1.3.gemspec.rz 200 OK GET http://rubygems.org/specs.4.8.gz 302 Found GET http://production.s3.rubygems.org/specs.4.8.gz
太多302跳转之类的了,国内对外这些技术网站的访问越来越困难,IT民工情何以堪!!
[#16 root@com8-16 redmon]# bundle install Fetching source index for http://rubygems.org/ Using rake (0.9.2.2) Using multi_json (1.0.4) Using activesupport (3.1.3) Installing bson (1.5.2) Installing bson_ext (1.5.2) with native extensions Installing chronic (0.6.6) Installing daemons (1.1.5) Installing delorean (1.2.0) Installing diff-lcs (1.1.3) Installing hiredis (0.3.2) with native extensions Installing em-hiredis (0.1.0) Installing eventmachine (0.12.10) with native extensions Installing haml (3.1.4) Installing i18n (0.6.0) Installing rack (1.4.0) Installing rack-protection (1.2.0) Installing rack-test (0.6.1) Installing redis (2.2.2) Installing tilt (1.3.3) Installing sinatra (1.3.2) Installing thin (1.3.1) with native extensions Using redmon (0.0.1) from source at . Installing rspec-core (2.6.4) Installing rspec-expectations (2.6.0) Installing rspec-mocks (2.6.0) Installing rspec (2.6.0) Installing shoulda (2.11.3) Using bundler (1.0.21) Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed
激动人心的时刻终于来了!
DEFAULT_OPTS = { :redis_url => 'redis://127.0.0.1:6379', :namespace => 'redmon', :web_interface => ['0.0.0.0', 4567], :worker => true, :poll_interval => 10
总体感觉,功能上还不太完善,keys 和 slow log 都“敬请期待” 来着。
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
来获取RVM 来进行安装。
rvm install 1.9.3
安装ruby1.9.3-p0及redmon来监控redis相关推荐
- paramiko监控 windows服务器 被监控服务器只需要安装openssh服务即可基于wmic完成大部分监控...
paramiko监控 windows服务器 被监控服务器只需要安装openssh服务即可基于wmic完成大部分监控 #!/usr/bin/python #-*- coding: UTF-8 -*-#+ ...
- 安装源码包(这里主要写了redis,其他都一样的操作)
一般不再/usr/local/下解压,从其他目录下解压出来,然后复制到/usr/local/下 解压:tar zxvf redis-5.0.5.tar.gz 移动:mv redis-5.0.5 /us ...
- Centos7安装Promethus(普罗米修斯)监控系统完整版
相关博文: 1.Centos7安装Promethus(普罗米修斯)监控系统完整版 2.Promethus(普罗米修斯)监控Mysql数据库 3.Promethus(普罗米修斯)安装Grafana可视化 ...
- 网络视频监控如何入门?如何安装和配置、设备选择和实时监控?
网络视频监控是一种先进的安全技术,它可以通过互联网连接到远程视频服务器,使用户可以随时随地监控所关注的地点.本文将介绍网络视频监控的基础入门知识,包括安装和配置.设备选择和实时监控等方面. 一.安装和 ...
- 安装ruby1.9.3
Ruby为什么如此受欢迎?它的拥趸说它是一种美丽的,巧妙的语言.而且它既方便又实用. 它的特点: Seeing Everything as an Object Flexibility Blocks, ...
- mysql事件探查器_【干货】Mysql的事件探查器-之Mysql-Proxy代理实战一(安装部署与实战sql拦截与性能监控)...
1:资料参考 https://blog.csdn.net/coldljy/article/details/3168906 https://www.cnblogs.com/jwentest/p/8552 ...
- 安装kube-prometheus项目:k8s部署prometheus、监控k8s核心组件、添加告警(微信、钉钉、企业微信)、进行数据持久化
概述 很多地方提到Prometheus Operator是kubernetes集群监控的终极解决方案,但是目前Prometheus Operator已经不包含完整功能,完整的解决方案已经变为kube- ...
- skywalking 安装_如何使用skywalking 进行全链路监控
本文涉及内容 skywalking 全链路监控 skywalking 的参数配置 skywalking UI 监控视角与指标介绍 一些很有用的点 skywalking 全链路监控 下图是我从网上找到的 ...
- 飞天茅台超卖P0事故:请慎用Redis分布式锁!
" 基于 Redis 使用分布式锁在当今已经不是什么新鲜事了.本篇文章主要是基于我们实际项目中因为 Redis 分布式锁造成的事故分析及解决方案. 图片来自 Pexels 背景 我们项目中的 ...
- CentOS 7.5 安装Zabbix4.4.4和Grafana6.4.4监控系统安装
1.Zabbix安装 下载zabbix server源码包 wget https://nchc.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20 ...
最新文章
- gen_caltab自治标定板
- php 上个月天数,php日期所在月的天数_PHP教程
- python操作MongoDB
- ASP.NET 服务器控件授权
- 推荐收藏!图深度学习发展历史、最新进展与应用
- mysql怎么保证最少一条消息_MySQL 的一条语句是怎么执行的
- 进阶04 4 Collection集合类+Iterator迭代器+增强for+泛型
- 用C#代码实现求两条线段的交点并判断各种情况
- nifi执行linux命令log,shell - 无法使用Nifi curl命令启动处理器 - SO中文参考 - www.soinside.com...
- 【吐血整理】Java项目源码分享
- 黑盒测试与白盒测试的区别
- 指数分布(一种连续分布)、爱尔朗分布
- 解决gradle运行gradle -v命令报Fialed to laod library 'native-platform.dll'错误
- 一个demo理解什么是MVP
- CSS基础--美化视觉效果
- VUE—下载安装并使用mint ui(图文详情)
- 爬虫用fiddler抓取网易新闻客户端手机app内容
- 关于C++ non-aggregate cannot be initialized错误的解决
- 企业信息化战略与实施
- python 实现键盘记录
热门文章
- 戴尔服务器加装固态硬盘吗,戴尔如何加装固态硬盘_戴尔电脑增加固态硬盘教程...
- 九爷带你了解 zabbix 飞信以及机器人报警
- java判断胡牌_怎么写一个c++程序判断麻将是否胡牌(只讨论清一色的情况)
- mysql5.7卸载服务_Mysql5.7.28安装配置、卸载—CentOS7.6生产环境下的微服务部署(四)...
- 计算机u盘打不开怎么办,电脑*u盘打不开怎么办
- cmake-自动识别新增子模块
- Praat脚本-011 | 绘制元音分布图
- 润肤悦颜各种偏方秘方
- RTKlib源码解析:ppp和rtkpost中的周跳检测函数
- Apache RocketMQ源码学习之生产者发送消息