connect('localhost', 6379);
echo "Connection to server sucessfully";
//check whether server is running or not
echo "Server is running: "+ $redis->ping();
?>
上面是我的代码和运行后的截图,我不明白是什么原因导致的,拜托各位指点指点了。
connect('localhost', 6379);
echo "Connection to server sucessfully";
//check whether server is running or not
echo "Server is running: "+ $redis->ping();
?>
上面是我的代码和运行后的截图,我不明白是什么原因导致的,拜托各位指点指点了。
你打印一下$redis->connect()的返回值,看看是不是真的连上了,
如果连上了,就set一个值,在redis-cli里面查看有没有真的设置上。
已抢23394个
抢已抢117827个
抢已抢139266个
抢已抢6238个
抢已抢35851个
抢已抢8254个
抢