Redis monitoring management web tool redmon installation and configuration

Source: Internet
Author: User

1. install and configure Ruby on Rails through rvm (Ruby version Manager)

Preparations:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo reboot

Install rvm:

bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)

After the installation is complete, modify the. bashrc file and add the following line to the end:

[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"

Run the following command to check whether rvm works properly:

source .bashrc
type rvm | head -1

If it is normal, we can see content like "rvm is a function". Next we will install Ruby and rails

; View installation suggestions
Rvm notes
Install necessary software packages
Sudo apt-Get install build-essential bison OpenSSL libreadline6 libreadline6-dev curl Git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev Autoconf libc6-dev ncurses-Dev
; List Ruby versions that can be installed
Rvm List known
Install Ruby. I chose version 1.9.3-P0.
Rvm install 1.9.3-P0
; Set the default Ruby version
Rvm -- default use 1.9.3-P0
; Check the version to see if it is correctly installed
Ruby-V
Gem-V
; You can manually update it if necessary.
Gem update -- System
Gem update
; Install rails
Gem install rails
; Check the version to see if it is correctly installed
Rails-V

In this way, the environment has been installed. The following error message may be prompted during the installation process:

  1. Yaml will be installed when Ruby is installed, and the following error message may appear during make:

    Compiling yaml in /home/debugcool/.rvm/src/yaml-0.1.4.ERROR: Error running 'make ', please read /home/debugcool/.rvm/log/ruby-1.9.3-p0/yaml/make.log
    This is because the yaml library is missing. You can use:
    sudo apt-get install libyaml-0-2 libyaml-dev
    Run this command to install the yaml library to solve this problem. If an error is still reported, check the B error message.
  2. View/home/debugcool/. rvm/log/ruby-1.9.3-p0/yaml/make. log information:
    src/Makefile.am:2: Libtool library used but `LIBTOOL' is undefinedsrc/Makefile.am:2:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
    If the libtool library is missing, you can use:
    sudo apt-get install libtool
    Run this command to install the libtool library to solve this problem.

2. Install redmon to monitor redis

Download redmon source code:

git clone https://github.com/steelThread/redmon.git

Install and run:

bundle install
ruby sample/app.rb

Note: if you do not use rvm for Ruby and rails installation and configuration, but use source code compilation and apt-get, you may encounter various strange gem-related errors, I also installed rvm only after the failure of various Baidu and Google products.

 

After running, you can open http: // localhost: 4567 in the browser to view the redis Web Monitoring page.

Redmon is the redis server that monitors port 6379 of the Local Machine by default. This can be modified. In the lib directory of the redmon directory, you can view the source code of redmon. RB:

module Redmon  extend self  attr_reader :opts  @opts = {    :redis_url     => 'redis://127.0.0.1:6379',    :namespace     => 'redmon',    :web_interface => ['0.0.0.0', 4567],    :worker        => true,    :poll_interval => 10  }

Modify the redis_url content in the above Code to monitor the self-executed redis server.

In addition, this installation, it is possible to see only a variety of interfaces, but there is no chart data, this is because redmon depends on the Highcharts-2.1.9, you also need to install it, the installation is very simple, download the Highcharts-2.1.9 after decompression, find highcharts In the JS directory. and copy it to the public/vendor in the redmon directory. Note that the latest version 2.2.0 may not work if it is 2.1.9, on the redmon project home page, it is also evident that the dependency on the Highcharts-2.1.9.

 

Above.

Reference:

Http://linux.cn/thread/7566/1/1/

Redmon project:

Https://github.com/steelThread/redmon

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.