php安装libevent扩展
发布时间:2020-12-13 18:30:14 所属栏目:Linux 来源:网络整理
导读:1、php的libevent扩展依赖于系统的libevent库,所以必须先把libevent库安装上。 yum -y install libevent-devel2、下载libevent扩展在 http://pecl.php.net/package/libevent 中找到合适的版本3、解压安装包 tar -zxvf libevent-0.1.0.tgz4、进入目录,通过p
1、php的libevent扩展依赖于系统的libevent库,所以必须先把libevent库安装上。
> yum -y install libevent-devel
2、下载libevent扩展
在 http://pecl.php.net/package/libevent 中找到合适的版本
3、解压安装包
> tar -zxvf libevent-0.1.0.tgz
4、进入目录,通过phpize命令生成configure (*我的PHP安装在/data/php下)
> cd libevent-0.1.0
> /data/php/bin/phpize
5、运行configure
> ./configure --with-php-config=/data/php/bin/php-config
6、make & make install
> make
> make install
7、在/data/php/lib/php.ini中添加
extension=libevent.so
8、重启服务器
? (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |