In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Wget-- no-check-certificate https://github.com/pypa/pip/archive/1.5.5.tar.gz
Tar zvxf 1.5.5.tar.gz
Cd pip-1.5.5
Yum groupinstall "Development tools"
Yum install zlib-devel
Yum install bzip2-devel
Yum install openssl-devel
Yum install ncurses-devel
Yum install sqlite-devel
Wget-- no-check-certificate https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tar.xz
Tar xf Python-2.7.9.tar.xz
Cd Python-2.7.9
. / configure-- prefix=/usr/local
Make & & make altinstall
Wget http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg
Sh setuptools-0.6c11-py2.7.egg
Ln-s / usr/local/bin/python2.7 / usr/local/bin/python
Python setup.py install
Pip install tornado
Pip install redis
Pip install python-dateutil
Git clone https://github.com/kumarnitin/RedisLive.git
Cd / usr/local/src/RedisLive/src
Mv redis-live.conf.example redis-live.conf
Vim redis-live.conf
{
"RedisServers":
[
{
"server": "192.168.80.103"
"port": 6379
"password": "123456"
}
]
"DataStoreType": "redis"
"RedisStatsServer":
{
"server": "192.168.80.103"
"port": 6385
"password": "123456"
}
"SqliteStatsStore":
{
"path": "/ usr/local/src/RedisLive/src/db/redislive.sqlite"
}
}
~
The function of RedisLive consists of two parts:
One part is the collection of redis-server status data, which is executed by src/redis-monitor.py.
Another part of the function is to provide query services for status data, and to provide web services through src/redis-live.py.
Set the redis-server to be monitored in RedisServers
The whole configuration is actually a json object, RedisServers is the information of the redis server, and multiple redis instances are configured because it is an array type. DataStoreType is the storage method of monitoring information. There are two ways: "redis" and "sqlite", corresponding to the following
RedisStatsServer and SqliteStatsStore, save after editing.
DataStoreType decides which type of data store to use
If it is redis, use RedisStatsServer as the target for data storage
In the case of sqlite, use SqliteStatsStore as the target for data storage.
Redis-live.py is used to start the web service, and the default port is 8888. Redis-monitor.py is the core service of redis monitoring.
So far, all the preparatory work has been completed, and finally, let's start the service:
. / redis-monitor.py-- duration=30 / / start monitoring. Duration is the heartbeat time.
. / redis-live.py / / start the web service and listen on port 8888 by default
Then open http://192.168.80.103:8888/index.html in the browser, and you can see the monitoring information:
Deployment environment:
* / 5 * cd / data/Redis-Monitor/RedisLive/src;. / redis-monitor.py-- duration 20 > / dev/null 2 > & 1
. / redis-live.py &
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.