Blogger Information
Blog 25
fans 0
comment 0
visits 16829
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
PHP下的Redis扩展安装
力挽狂澜的博客
Original
884 people have browsed it
# pecl install redis
是否启用特殊序列化方式 no
是否启用特殊压缩方式 no

目前是学习阶段,也不是也别清楚安装过程中这两条参数配置会有什么影响。好在扩展安装成功了。

先要重启服务,按自己的web服务器是去调整。

启动apache
# service httpd start 
停止apache
# service httpd stop 
重启apache
# service httpd restart
启动nginx
# nginx -s start
停止服务nginx
# nginx -s stop
重启nginx
# nginx -s reload
# php -m //查看PHP扩展,检验redis是否安装,或者写个脚本test.php,使用phpinfo();来检验
<?php
//phpinfo();
$redis = new redis();
$redis->connect('127.0.0.1', 6379);
// $redis->ping();
// $name = $redis->get("name");
$re = $redis->set('name','skyerisme');
var_dump($re);


关联文章:Linux下安装redis过程

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post