首页 文章 Redis 在线管理工具(phpRedisAdmin)介...

Redis 在线管理工具(phpRedisAdmin)介绍

来源:https://www.jianshu.com/p/0792472b4a1d 发布时间:2019-12-04 17:05:00 作者:Soul-Yang 阅读量:896
phpRedisAdmin is a simple web interface to manage Redis databases.

phpRedisAdmin 在 Redis clients 的列表中,目前还零星有更新;

It is released under the Creative Commons Attribution 3.0 license. This code is being developed and maintained by Erik Dubbelboer.

Example,感受一下
You can find an example database at http://dubbelboer.com/phpRedisAdmin/
体会一下
  • server:同时可以管理若干个 server;每个 server 是 redis 的一个实例;
  • database:每个 server 默认划分为 16 个库,用于 key 空间的隔离;
  • 第 1 个filter是过滤 server 的(type here to server filter),默认 * 星号即可;
  • 第 2 个filter是过滤 key 的(type here to filter),即 KEYS 命令;
  • 蓝色 i 图标可以查看 INFO 命令结果;
安装
  • 下载版本包
    从 github 下载 [phpRedisAdmin],最新版 v1.6.0。依赖 predis 1.0.3 及以上;
    从 github 下载 predis,最新 v1.1.1。
  • 或者从 git 库直接 clone
git clone https://github.com/ErikDubbelboer/phpRedisAdmin.git
cd phpRedisAdmin
git clone https://github.com/nrk/predis.git vendor
配置
  • Predis 代码直接放在 phpRedisAdmin 的 vendor 子目录下;
    如果 predis 不存在,报 500 错误。
    Predis:Flexible and feature-complete Redis client for PHP and HHVM;
  • 配置 config.inc.php
    You may also want to copy includes/config.simple.inc.php to includes/config.inc.php and edit it with your specific redis configuration.
    如果你要修改配置,则复制 config.simple.inc.php 到 config.inc.php 进行修改即可;通常不必修改;
    访问 redis 数据通常要进行认证,要确保数据安全;
    login 变量就是负责认证的;
  • 直接使用 nginx HTTP Basic Authentication 进行认证即可(不必配置修改 login 变量);

redisadmin.conf 配置片段 の nginx
    auth_basic "redisadmin authentication required";
    auth_basic_user_file htpasswd/redisadmin.example.com;

    index index.php;
    location ~ ".*\.php$" {
        include fastcgi_params;
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    } 





  
留言
https://blog.key9.cn/
用户登录
您还没有写任何评论内容!
您已经评论过了!
只能赞一次哦!
您已经收藏啦!