1 sudo pecl install yaf
2 添加扩展
Installing '/usr/local/Cellar/php71/7.1.5_17/lib/php/extensions/no-debug-non-zts-20160303/yaf.so'
install ok: channel://pecl.php.net/yaf-3.0.5
configuration option "php_ini" is not set to php.ini location
You should add "extension=yaf.so" to php.ini