环境:Centos 6.6
PHP version 5.5.38
redis version:3.2.5
[[email protected] ~]# ntpdate time.windows.com [[email protected] ~]# yum -y install php55w php55w-cli php55w-common php55w-devel php55w-gd php55w-odbc php55w-mysql php55w-fpm nginx [[email protected] ~]# yum -y install gcc gcc-c++ libstdc++-devel tcl [[email protected] ~]# wget http://download.redis.io/releases/redis-3.2.5.tar.gz [[email protected] ~]# tar -zxf redis-3.2.5.tar.gz -C /usr/local/ [[email protected] ~]# cd /usr/local/redis-3.2.5/ [[email protected] redis-3.2.5]# make [[email protected] redis-3.2.5]# make test [[email protected] ~]# ln -s /usr/local/redis-3.2.5/src/redis-server /bin/ [[email protected] ~]# ln -s /usr/local/redis-3.2.5/src/redis-cli /bin/ [[email protected] ~]# wget https://codeload.github.com/phpredis/phpredis/tar.gz/2.2.4 -O phpredis-2.2.4.tar.gz [[email protected] ~]# tar -zxf phpredis-2.2.4.tar.gz [[email protected] ~]# cd phpredis-2.2.4 [[email protected] phpredis-2.2.4]# phpize [[email protected] phpredis-2.2.4]# ./configure --with-php-config=/usr/bin/php-config [[email protected] phpredis-2.2.4]# make [[email protected] phpredis-2.2.4]# make install Installing shared extensions: /usr/lib64/php/modules/ [[email protected] phpredis-2.2.4]# [[email protected] phpredis-2.2.4]# make test [[email protected] ~]# /etc/init.d/php-fpm start [[email protected] ~]# /etc/init.d/nginx start [[email protected] ~]# chkconfig --add nginx [[email protected] ~]# chkconfig --add php-fpm [[email protected] ~]# chkconfig nginx on [[email protected] ~]# chkconfig php-fpm on [[email protected] ~]# php -m | grep -i redis redis [[email protected] ~]#
时间: 2024-10-25 03:58:09