redis

命令行直接連:php

redis-cli -h host -a 6379:passwordredis

php擴展:ide

$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();
?>server

相關文章
相關標籤/搜索