安装Redis管理工具phpRedisAdmin

2016-09-12  本文已影响0人  Mark87

1、下载phpRedisAdmin,并放到/data/www目录下面

[root@redis ~]cd/data/www

[root@redis www] git clone https://github.com/ErikDubbelboer/phpRedisAdmin.git

[root@redis www]cdphpRedisAdmin

[root@redis phpRedisAdmin] git clone https://github.com/nrk/predis.git vendor

2、Nginx安装及配置

[root@redis ~] yuminstall-y nginx

[root@redis ~] vim/etc/nginx/conf.d/redis.conf

server {

listen       80;

server_name  localhost;

location / {

root/data/www;

index  index.html index.htm index.php;

}

location ~ \.php$ {

root/data/www;

fastcgi_pass   127.0.0.1:9000;

fastcgi_index  index.php;

fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;

include        fastcgi_params;

}

}

[root@redis ~] service nginx restart

3、配置phpRedisAdmin

[root@redis ~]cp/data/www/phpRedisAdmin/includes/config.sample.inc.php/data/www/phpRedisAdmin/includes/config.inc.php

[root@redis ~] vim/data/www/phpRedisAdmin/includes/config.inc.php

array(

'name'=>'redis_1',//Optional name.

'host'=>'127.0.0.1',

'port'=> 6379,

'filter'=>'*'

),

array(

'name'=>'redis_2',//Optional name.

'host'=>'127.0.0.1',

'port'=> 6380,

'filter'=>'*'

),

'login'=> array(

'admin'=> array(

'password'=>'123456',

)

)

4、测试phpRedisAdmin

浏览器上,输入”http://localhost/phpRedisAdmin”进行测试,账号:admin,密码:123456

DEMO:http://dubbelboer.com/phpRedisAdmin/

上一篇下一篇

猜你喜欢

热点阅读