Using Redislive to monitor Redis services-Installation Manuals

Source: Internet
Author: User

#1. GCC Compilation Environment Confirmation GCC-V If there is no GCC environment, please install GCCYumInstallGCC#2. OpenSSL installationYumInstallOpenssl-y
YumInstallOpenssl-devel-y
#3. SQLite InstallationYumInstallSqlite-devel-y
#4. zlib Installation yum install zlib
Yum Install zlib-devel

#5. CentOS upgrade Python to 2.7Tar-XVF python-2.7.3. tgz
CD python-2.7.3
./configure
Make
MakeInstall
#接下来需要创建一个链接来使系统默认python变为python2.7
LN-fs/usr/local/python2.7/bin/python2.7/usr/bin/python
#运行python查看版本
Python-v
#进行更改后, yum if it can't run#修改 the/usr/bin/yum file, change the #!/usr/bin/python of the first line to the original Python version of the system, as follows:

#!/usr/bin/python2.6
#6. Basic Environment Installation Download Setuptools Packagewgethttp://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz
unzip the Setuptools bagTarZXVF setuptools-0.6c11.Tar. gz
CD setuptools-0.6c11
compiling SetuptoolsPython setup.py Build
Start performing setuptools installationPython setup.pyInstall ----------------------------------------------------------------------------------------------------------- ------------------------------------ wgetHttps//pypi.python.org/packages/source/b/backports.ssl_match_hostname/backports.ssl_match_hostname-3.4.0.2.tar.gz tar xvzf backports.ssl_match_hostname-3.4.0.2.tar.gz
CD backports.ssl_match_hostname-3.4.0.2
python setup.py Install


--------------------------------------------------------------------------------------------------------------- --------------------------------

wgetHttps//github.com/facebook/tornado/archive/v3.2.0.tar.gz
TarXvzf tornado-3.2.0.Tar. gz
CD tornado-3.2.0
Python setup.pyInstall

--------------------------------------------------------------------------------------------------------------- --------------------------------

wgetHttps//pypi.python.org/packages/source/r/redis/redis-2.9.1.tar.gz
TarXvzf redis-2.9.1.Tar. gz
CD redis-2.9.1
Python setup.pyInstall

--------------------------------------------------------------------------------------------------------------- --------------------------------

wgetHttps//pypi.python.org/packages/source/s/six/six-1.5.2.tar.gz
TarXvzf six-1.5.2.Tar. gz
CD six-1.5.2
Python setup.pyInstall

--------------------------------------------------------------------------------------------------------------- --------------------------------

wgetHttps//pypi.python.org/packages/source/p/python-dateutil/python-dateutil-2.2.tar.gz
TarXvzf python-dateutil-2.2.Tar. gz
CD python-dateutil-2.2
Python setup.pyInstall

--------------------------------------------------------------------------------------------------------------- --------------------------------

wgethttp//argparse.googlecode.com/files/argparse-1.2.1.tar.gz
TarXvzf argparse-1.2.1.Tar. gz
CD argparse-1.2.1
Python setup.pyInstall

--------------------------------------------------------------------------------------------------------------- --------------------------------

#7. redislive Installation Https://codeload.github.com/nkrode/RedisLive/zip/master

UnzipRedislive-master.Zip
MVRedislive-master redislive


#8. Redislive Configuration

CD REDISLIVE/SRC
VIRedis-live.conf

Set up the redis-server that need to be monitored in redisservers;


Datastoretype decided to use that type of data store,
In the case of Redis, use RediSstatsserver as the target for data storage;
In the case of SQLite, use Sqlitestatsstore as the target for data storage.


The function of redislive is divided into two parts:
One part is the collection of Redis-server state data, which is executed by src/redis-monitor.py;
Another part of the function is to provide query services to the state data, and to provide Web services through src/redis-live.py.


#9. Initialize DB
CD db
CatSchema.sql | Sqlite3 Redislive.sqlite


#10. Configuring periodic monitoring of Redislive

CD/<your redislive path>/redislive/src;
Nohup./redis-monitor.py--duration ->/dev/NULL2>&1&


#11. service startup

Nohup./redis-live.py &


#12. Effect Show

Http://192.168.40.9:8888/index.html

Using Redislive to monitor Redis services-Installation Manuals

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.