以前不多搞过这块,觉得直接复制个redis.so过来就好了,应该是版本不对,因此报错了,其实正确的姿式应该以下:php
1、安装redismysql
大部分按照http://blog.csdn.net/ludonqin/article/details/47211109这个里面的方法就能够了,须要注意几个问题nginx
一、redis已经给咱们写好了启动脚本,只须要稍微修改就能用了git
拷贝解压包下utils下redis启动脚本至/etc/init.d/github
cp redis_init_script /etc/init.d/redis
二、 设置自启动时候若是报错须要添加的红框中的内容确实须要加上#,这个不是注释sql
2、安装PHPredis扩展apache
大部分按照http://blog.csdn.net/vboy1010/article/details/7756508,须要注意几个问题:服务器
一、phpredis的地址以下:php-fpm
若是服务器没装Git客户端下载到客户机上再传上去吧
https://github.com/phpredis/phpredis
3、阿里云管理服务器脚本
nginx:
/etc/init.d/nginx start/stop/restart/reload)
apache:
/etc/init.d/httpd start/stop/restart/...
mysql:
/etc/init.d/mysqld start/stop/restart/...
php-fpm:
/etc/init.d/php-fpm start/stop/restart/...
ftp:
/etc/init.d/vsftpd start/stop/restart/...
好比启动nginx:
/etc/init.d/nginx start