2017年10月28日
摘要: Redis连接与认证 //连接参数:ip、端口、连接超时时间,连接成功返回true,否则返回false $ret = $redis->connect('127.0.0.1', 6379, 30); //密码认证:成功返回true,否则返回false $ret = $redis->auth('1234 阅读全文
posted @ 2017-10-28 17:42 程序小院 阅读(188) 评论(0) 推荐(0) 编辑
摘要: phpinfo(); 首先下载phpredis扩展包 https://github.com/chaihy/phpredis.git 解压 cd phpredis 运行phpize,生成configure文件 sudo phpize sudo ./configure sudo make && make 阅读全文
posted @ 2017-10-28 17:00 程序小院 阅读(253) 评论(0) 推荐(0) 编辑