安装pecl wget http://pear.php.net/go-pear.phar php go-pear.phar yum -y install pcre-devel pecl install yaf echo "extension=yaf.so" >> /etc/php.ini