安装PHP扩展

三板斧:下载,解压,安装

redis扩展

wget -c https://github.com/phpredis/phpredis/archive/php7.zip
unzip php7.zip
phpize
./configure --with-php-config=/usr/local/php/bin/php-config
/usr/local/php7/etc/php.ini中加入extension=redis.so

memchche.so
参考http://www.cnblogs.com/luyucheng/p/6232349.html
fastdfs_client.so
http://blog.csdn.net/ssoul_liu/article/details/51059139
swoole.so
http://pecl.php.net/package/swoole
zookeeper.so
http://pecl.php.net/package/zookeeper
fileinfo.so
http://www.cnblogs.com/guansixu/p/7058295.html

安装libevent.so出现的问题

configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.

于是百度找解决方法

wget https://sourceforge.net/projects/re2c/files/0.16/re2c-0.16.tar.gz
tar zxf re2c-0.16.tar.gz && cd re2c-0.16
./configure
make && make install
error: Cannot find libevent headers
wget http://cloud.github.com/downloads/libevent/libevent/libevent-2.0.20-stable.tar.gz
tar zxvf libevent-2.0.20-stable.tar.gz
cd libevent-2.0.20-stable/
./configure --prefix=/usr/local/libevent-2.0.20-stable/
make
make install
 cd libevent-0.1.0
/usr/local/php/bin/phpize
 ./configure --with-php-config=/usr/local/php/bin/php-config --with-libevent=/usr/local/libevent-2.0.20-stable
 make && make install

安装多线程

pecl install phreads.so

extension="pthreads.so"
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容