Redis GUI客户端

Redis GUI客户端


官方网站:
https://github.com/ErikDubbelboer/phpRedisAdmin
https://github.com/nrk/predis
https://github.com/nkrode/RedisLive
http://redisdesktop.com/
https://github.com/uglide/RedisDesktopManager
http://gcc.gnu.org/
参考文档:
http://www.cnblogs.com/DavidYan/articles/2384001.html
http://blog.csdn.net/xiaolong2w/article/details/23915171
http://www.cnblogs.com/pugna/p/4070407.html
环境:
CentOS6.5+nginx+php
请参看LNMP源码安装配置

Redis的GUI客户端主流的有3个,phpRedisAdmin(php),RedisLive(python),Redis Desktop Manager(QT5)


phpRedisAdmin
1.下载解压phpRedisAdmin
[root@sentinel ~]# wget https://github.com/ErikDubbelboer/phpRedisAdmin/archive/master.zip -O phpRedisAdmin.zip
[root@sentinel ~]# unzip phpRedisAdmin.zip
[root@sentinel ~]# mv phpRedisAdmin-master/ /usr/local/nginx/html/phpRedisAdmin
2.下载解压predis
[root@sentinel ~]# wget https://github.com/nrk/predis/archive/v1.0.zip -O predis.zip
[root@sentinel ~]# unzip predis.zip
[root@sentinel ~]# mv predis-1.0/ /usr/local/nginx/html/phpRedisAdmin/predis
3.配置phpRedisAdmin
[root@sentinel ~]# cd /usr/local/nginx/html/phpRedisAdmin/includes/
[root@sentinel includes]# vim common.inc.php
require dirname(__FILE__) . '/../predis/autoload.php';
[root@sentinel includes]# cp config.sample.inc.php config.inc.php
#redis服务器地址及端口
'servers' => array(
                        0 => array(
                                'name' => 'local server', // Optional name.
                                'host' => '127.0.0.1',
                                'port' => 6379,
                                'filter' => '*'

                                // Optional Redis authentication.
                                ),
#用户认证
'login' => array(
                                        // Username => Password
                                        // Multiple combinations can be used
                                        'admin' => array(
                                                'password' => 'adminpassword',
                                                ),
                                        'guest' => array(
                                                'password' => '',
                                                'servers' => array(1) // Optional list of servers this user can access.
                                                )
                                        ),

Redis <wbr>GUI客户端



Redis Desktop Manager
Redis Desktop Manager目前官方为linux只提供了Ubuntu和Debian的二进制包,CentOS6下要先装QT5。
1.安装qt5
http://download.qt-project.org/official_releases/qt/5.4/5.4.1/qt-opensource-linux-x64-5.4.1.run
注意:CentOS6的gcc版本过低,要先升级gcc,否则在安装过程中会提示
Warning: /opt/Qt5.4.1//Tools/QtCreator/bin/sdktool: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by /opt/Qt5.4.1/Tools/QtCreator/bin/../lib/qtcreator/libUtils.so.1)
root@jun-live:~#strings /usr/lib64/libstdc++.so.6 |grep GLIBCXX
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_FORCE_NEW
GLIBCXX_DEBUG_MESSAGE_LENGTH
升级gcc,首先要安装依赖库gmp,mpfr,mpc,可以源码安装,其中gmp,mpfr光盘自带
http://ftp.tsukuba.wide.ad.jp/software/gcc/infrastructure/gmp-4.3.2.tar.bz2
http://ftp.tsukuba.wide.ad.jp/software/gcc/infrastructure/mpfr-2.4.2.tar.bz2
http://ftp.tsukuba.wide.ad.jp/software/gcc/infrastructure/mpc-0.8.1.tar.gz
root@jun-live:~#yum -y install gmp-devel gmp-static mpfr-devel libgcc.i686
root@jun-live:~#tar -xvf mpc-0.8.1.tar.gz -C /usr/local/src/
root@jun-live:~#cd /usr/local/src/mpc-0.8.1/
root@jun-live:mpc-0.8.1#./configure && make && make install

root@jun-live:~#wget http://ftp.gnu.org/gnu/gcc/gcc-4.9.2/gcc-4.9.2.tar.bz2
root@jun-live:~#tar -xvf gcc-4.9.2.tar.bz2 -C /usr/local/src/
root@jun-live:~#cd /usr/local/src/gcc-4.9.2/
root@jun-live:gcc-4.9.2#./configure --prefix=/usr/local/gcc-4.9.2 --enable-threads=posix --disable-checking  --enable-languages=c,c++,java --enable-multilib
root@jun-live:gcc-4.9.2#make && make install
Redis <wbr>GUI客户端

Redis <wbr>GUI客户端
说明:如果不升级gcc,安装时会报如上错误,可以点选"Ignore"
Redis <wbr>GUI客户端



2.安装Redis Desktop Manager
root@jun-live:~#yum -y install libssh2-devel openssl-devel
root@jun-live:~#wget https://github.com/uglide/RedisDesktopManager/archive/0.8.0.zip
root@jun-live:~#cd /usr/local/src
root@jun-live:src#unzip /root/RedisDesktopManager-0.8.0.zip
root@jun-live:src#cd RedisDesktopManager-0.8.0/
root@jun-live:RedisDesktopManager-0.8.0#/opt/Qt5.4.1/5.4/gcc_64/bin/qmake ./src/rdm.pro && make
Redis <wbr>GUI客户端


RedisLive
轻量监控小程序,基于python2.x
http://www.nkrode.com/article/real-time-dashboard-for-redis
pip install tornado redis python-dateutil
git clone https://github.com/kumarnitin/RedisLive.git
cp RedisLive/src/redis-live.conf.example RedisLive/src/redis-live.conf

{
"RedisServers":

{
  "server": "192.168.130.254",
  "port" : 6379
}

],


"DataStoreType" : "sqlite",


"RedisStatsServer":
{
"server" : "ec2-184-72-166-144.compute-1.amazonaws.com",
"port" : 6385
},

"SqliteStatsStore" :
{
"path":  "/Users/jlive/RedisLive/src/db/redislive.sqlite"
}
}


./RedisLive/src/redis-monitor.py --duration=120
./RedisLive/src/redis-live.py
http://localhost:8888/index.html
Redis <wbr>GUI客户端

原文地址:https://www.cnblogs.com/lixuebin/p/10814425.html