#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