PHP7安装Redis扩展
PHP7安装Redis扩展
1、安装redis
(1)下载:https://github.com/phpredis/phpredis/tree/php7 或下载http://pan.baidu.com/s/1i5DFrjn用samba挂载导进去
(2)yum -y install m4 autoconf # 安装依赖
(3)unzip phpredis-php7.zip # 解压
(4)cd ./phpredis-php7 # 进入目录
(5)phpize #用phpize生成configure配置文件
(6)./configure --with-php-config=/usr/local/php7/bin/php-config #配置
(7)make #编译
(8)make install #安装
(9)vim /usr/local/php7/etc/php.ini #编辑配置文件,在最后一行(G直接到最后一行)添加以下内容extension="redis.so"
[root@localhost phpredis-php7]# ps -aux | grep php root 1572 0.0 0.6 212856 6032 ? Ss 13:40 0:00 php-fpm: master process (/usr/local/php7/etc/php-fpm.conf) nginx 1608 0.0 0.5 212856 5588 ? S 13:40 0:00 php-fpm: pool www nginx 1609 0.0 0.5 212856 5588 ? S 13:40 0:00 php-fpm: pool www root 5376 0.0 0.0 112648 972 pts/0 R+ 13:50 0:00 grep --color=auto php
查找PHP进程 平滑启动 kill -USR2 1572 查看phpinfo
2.PHP程序
相关推荐
savorTheFlavor 2020-10-23
zyyjay 2020-11-09
xuebingnan 2020-11-05
samtrue 2020-11-22
stefan0 2020-11-22
yifangs 2020-10-13
songshijiazuaa 2020-09-24
hebiwtc 2020-09-18
天步 2020-09-17
83911535 2020-11-13
whatsyourname 2020-11-13
zhouyuqi 2020-11-10
Noneyes 2020-11-10
mathchao 2020-10-28
王志龙 2020-10-28
wwwsurfphpseocom 2020-10-28
diskingchuan 2020-10-23