分布式存储Redis(web管理工具)

  • A+
所属分类:Redis 数据库

配置centos epel源

phpredisadmin

https://github.com/ErikDubbelboer/phpRedisAdmin/

redis-rbd-tools

https://github.com/sripathikrishnan/redis-rdb-tools
yum -y install httpd php php-mbstring php-redis
git clonehttps://github.com/ErikDubbelboer/phpRedisAdmin.git
cd phpRedisAdmin
git clone https://github.com/nrk/predis.gitvendor
[root@Mike admin]# cd includes/
[root@Mike includes]# cpconfig.sample.inc.php config.inc.php
[root@Mike includes]# vim config.inc.php
[root@Mike admin]# vim test.php
//连接本地的 Redis 服务
$redis = new Redis();
$result = $redis->connect('127.0.0.1',6379);
if($result){
echo "
Connection toserver sucessfully
";
}else{
echo "
Connection toserver fail
";
}

//查看服务是否运行

echo "Server is running: " . $redis->ping();
?>

YaLei

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: