Paste_Image.png
https://github.com/phpredis/phpredis
連接前確定是否啟動redis
/usr/local/bin/redis-server /home/tong3/config/redis/redis.conf
connect.php
<?php
$redis=new \Redis();
$redis->connect("127.0.0.1",7200);
?>
php connect.php
Paste_Image.png