Operating System: Windows 7 旗舰版 64-bit (6.1, Build 7601) Service Pack 1 (7601.win7sp1_ldr.170913-0600)

Language: Chinese (Simplified) (Regional Setting: Chinese (Simplified))

System Manufacturer: Hewlett-Packard

centos64phpcentos64下设置装备摆设nginxphp7mysql55redis32 PHP

System Model: HP 431 Notebook PC

BIOS: InsydeH2O Version 03.60.50F.22

Processor: Intel(R) Core(TM) i3-2330M CPU @ 2.20GHz (4 CPUs), ~2.2GHz

Memory: 4096MB RAM

二、虚拟机环境

1. VMware-workstation-full-11.1.0-2496824

2. CentOS-6.4-i386

三、软件下载

. nginx,php,mysql,redis

四、安装过程:

1.下载集成安装包,包括lnmp,redis,php-redis

2. tar zxf lnmp1.4.tar.gz && cd lnmp1.4 && ./install.shlnmp

3. tar -zxvf redis-3.2.3.tar.gz

4. cd redis-3.2.3

5.make

6. cd redis-3.2.3

7.src/redis-server #开启redis-server做事

8.kill cat /var/run/redis_6379.pid #关闭redis-server做事

9.客户真个连接

/home/software/redis-3.2.3/src/redis-cli -h 127.0.0.1 -p 6379 -a password # -h 主机IP -p 端口号 -a 连接密码(requirepass)

10.安装phpredis扩展

(1)yum -y install m4 autoconf # 安装依赖

(2)unzip phpredis-php7.zip # 解压

(3)cd ./phpredis-php7 # 进入目录

(4)phpize #用phpize天生configure配置文件

(5)./configure --with-php-config=/usr/local/php/bin/php-config #配置

(6)make #编译

(7)make install #安装

(8)vim /usr/local/php/etc/php.ini #编辑配置文件,在末了一行(G直接到末了一行)添加以下内容extension="redis.so"