环境:Centos 6.6
PHP version 5.5.38
redis version:3.2.5
[root@redis ~]# ntpdate time.windows.com [root@redis ~]# yum -y install php55w php55w-cli php55w-common php55w-devel php55w-gd php55w-odbc php55w-mysql php55w-fpm nginx [root@redis ~]# yum -y install gcc gcc-c++ libstdc++-devel tcl [root@redis ~]# wget http://download.redis.io/releases/redis-3.2.5.tar.gz [root@redis ~]# tar -zxf redis-3.2.5.tar.gz -C /usr/local/ [root@redis ~]# cd /usr/local/redis-3.2.5/ [root@redis redis-3.2.5]# make [root@redis redis-3.2.5]# make test [root@redis ~]# ln -s /usr/local/redis-3.2.5/src/redis-server /bin/ [root@redis ~]# ln -s /usr/local/redis-3.2.5/src/redis-cli /bin/ [root@redis ~]# wget https://codeload.github.com/phpredis/phpredis/tar.gz/2.2.4 -O phpredis-2.2.4.tar.gz [root@redis ~]# tar -zxf phpredis-2.2.4.tar.gz [root@redis ~]# cd phpredis-2.2.4 [root@redis phpredis-2.2.4]# phpize [root@redis phpredis-2.2.4]# ./configure --with-php-config=/usr/bin/php-config [root@redis phpredis-2.2.4]# make [root@redis phpredis-2.2.4]# make install Installing shared extensions: /usr/lib64/php/modules/ [root@redis phpredis-2.2.4]# [root@redis phpredis-2.2.4]# make test [root@redis ~]# /etc/init.d/php-fpm start [root@redis ~]# /etc/init.d/nginx start [root@redis ~]# chkconfig --add nginx [root@redis ~]# chkconfig --add php-fpm [root@redis ~]# chkconfig nginx on [root@redis ~]# chkconfig php-fpm on [root@redis ~]# php -m | grep -i redis redis [root@redis ~]#
本文出自 “鹏城-酱油瓶” 博客,谢绝转载!
原文地址:http://yfshare.blog.51cto.com/8611708/1874164