Redis monitoring system redis-stat offline installation

Install redis-stat offline

 

1. The operating system is: Linux

2. Preconditions: gcc, gcc++, ruby, rubygems need to be installed

   2.1 Install gcc and gcc++

    yum install gcc

    yum -y install gcc+ gcc-c++ (solve the problem of g++: command not found)

  2.2rubygems installation

      1. Download the latest tgz package, download address: https://rubygems.org/pages/download Click to download TGZ

      2.tar -zxvf to decompress the archive

      3. Enter the decompression directory and execute: ruby ​​setup.rb

      4. If an error message appears: ERROR: RDoc documentation generator not installed: no such file to l

      5. Install the dependency package: yum install ruby-rdoc

      6. Execute ruby ​​setup.rb again to complete the installation

      7.安装rubygems出现ERROR:RDoc documentation generator not installed: no such file to l

        Solution: yum install ruby-rdoc

3 Install redis-stat offline

   Download the redis-stat-master.zip compressed file on GitHub at https://github.com/junegunn/redis-stat

   Installing redis-stat-0.4.13.gem requires installing related dependencies.

   Upload the gems folder to the Linux system /opt, cd /opt/gems/

   Install dependencies:

gem install --local daemons-1.1.9.gem

gem install --local rack-1.3.6.gem

gem install --local eventmachine-1.2.0.1.gem

gem install --local thin-1.5.0.gem

 

gem install --local multi_json-1.12.1.gem

gem install --local faraday-0.9.2.gem

gem install --local elasticsearch-api-1.0.0.gem

gem install --local elasticsearch-transport-1.0.0.gem

gem install --local elasticsearch-1.0.0.gem

 

gem install --local multipart-post-1.2.0.gem

gem install --local option_initializer-1.5.0.gem

gem install --local lps-0.2.0.gem

 

gem install --local tilt-1.3.3.gem

gem install --local rack-protection-1.2.0.gem

gem install --local sinatra-1.3.3.gem

gem install --local si-0.1.4.gem

 

gem install --local parallelize-0.4.0.gem

gem install --local insensitive_hash-0.3.0.gem

gem install --local unicode-display_width-0.1.1.gem

gem install --local tabularize-0.2.9.gem

 

gem install --local redis-3.0.7.gem

gem install --local ansi256-0.2.5.gem

gem install --local rb-readline-0.5.3.gem

gem install --local json-1.8.2.gem

gem install --local SystemTimer-1.2.2.gem

 

gem install --local redis-stat-0.4.13.gem

 

    Test after installation

    Download the redis-stat-master.zip file in git,

    cd /opt/redis-stat-master/bin
    ./redis-stat -help If no error message appears, it means the installation is successful.

    Find the gem community of rubu, the address is: https://rubygems.org/

4. redis-stat start

    cd / opt / redis-stat-master / bin

    ./redis-stat ip:7380,ip:7380 --server --daemo

   If there is no error, it means the startup is successful.

   Open in the browser: ip:63790, you can see the redis status.

 

Note: The ruby ​​version I installed is: 1.8.7, and the rubygems version is: 2.6.12. See the attachment for the required gem package and rubygems installation package.

Reference: http://aperise.iteye.com/blog/2310254

 

 

 

 

 

 

 

 

 

 

    

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326142310&siteId=291194637