欢迎投稿

今日深度:

redis,

redis,


命令行直接连:

redis-cli -h host -a 6379:password

php扩展:

$redis = new Redis();
$redis->connect(host,6379);
$res = $redis->auth(password);

redis
<?php 
//Connecting to Redis server on localhost 
$redis = new Redis(); 
$redis->connect('host', 6379); 
echo "Connection to server sucessfully"; 
//check whether server is running or not echo "Server is running: "+ $redis->ping(); 
?>



     本文转自wsw26 51CTO博客,原文链接:http://blog.51cto.com/wsw26/2066341,如需转载请自行联系原作者



www.htsjk.Com true http://www.htsjk.com/redis/43471.html NewsArticle redis, 命令行直接连: redis-cli -h host -a 6379:password php扩展: $redis = new Redis(); $redis-connect(host,6379); $res = $redis-auth(password); ?php  //Connecting to Redis server on localhost  $redis = new Redis();  $redis-...
评论暂时关闭