[redis]⑤---连接

[redis]⑤---连接_第1张图片
Paste_Image.png

https://github.com/phpredis/phpredis

连接前确定是否启动redis

/usr/local/bin/redis-server /home/tong3/config/redis/redis.conf

connect.php

connect("127.0.0.1",7200);
?>
php connect.php
[redis]⑤---连接_第2张图片
Paste_Image.png

你可能感兴趣的:([redis]⑤---连接)