centos 下裝yaf 擴展

0.準備工做:安裝雜七雜八的工具

yum install php-devel #裏面包含phpize
yum install pcre-devel
yum install autoconf
yum -y install gcc

1.下載yaf源碼

cd /d01/download
wget http://pecl.php.net/get/yaf

2.解壓
tar zxvf yaf-2.3.1.tar.gz

3.進入目錄
cd yaf-2.3.1

4.編譯
./configure --with-php-config=/usr/bin/php-config
make && make install

5.更改php.ini

在/etc/php.ini文件裏添加一行

extension=yaf.so

6.重啓php
/etc/rc.d/init.d/php-fpm restart

7.phpinfo()查看
相關文章
相關標籤/搜索