wget http:
//pecl.php.net/get/yaf-3.0.7.tgz
|
解壓並進入目錄:php
1
|
tar -zxvf yaf-3.0.7* && cd yaf-3.0.7
|
預處理:vim
1
|
phpize
|
執行配置信息並安裝:php7
1
|
./configure --with-php-config=/usr/bin/php-config7.2 && make && make test
|
查看擴展安裝的路徑spa
1
|
make install
|
配置php.ini支持yaf擴展.net
vim /etc/php.ini 加入 [yaf] yaf.environ = product yaf.library = NULL yaf.cache_config = 0 yaf.name_suffix = 1 yaf.name_separator = "" yaf.forward_limit = 5 yaf.use_namespace = 0 yaf.use_spl_autoload = 0 extension=yaf.so //關鍵步驟