标签:令行 local tin img -o ddb 命令 oca running
命令行直接连: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->connect(‘host‘, 6379);
echo "Connection to server sucessfully";
//check whether server is running or not echo "Server is running: "+ $redis->ping();
?>
标签:令行 local tin img -o ddb 命令 oca running
原文地址:http://blog.51cto.com/wsw26/2066341