<h1 style="font-size:30px;color:#333333;font-weight:400;font-family:&quot;background-color:#FFFFFF;">

<span style="font-size:16px;font-family:&quot;">1.下载yac源码</span><br />

</h1>
<p>

<span style="font-size:16px;"> </span> 

</p>

wget https://github.com/laruence/yac/archive/master.zip
<span style="font-family:Microsoft YaHei;"> 解压并进入源码目录 </span> <p>
</p> <p> <span style="font-size:16px;"> </span> </p>
unzip master -d ./
cd yac-master
<p> <span style="font-size:16px;font-family:&quot;">2.编译安装:</span> </p> <p> <span><span style="font-size:16px;">依次输入以下命令</span></span> </p> <p>
</p> <p> <span style="font-size:16px;"> </span> </p>
phpize
./configure --with-php-config=/usr/local/php/bin/php-config
<span style="font-family:Microsoft YaHei;">注以上路径根据自己服务器情况来修改,比如你用宝塔面板php7.1,则是 </span> <p>
</p> <p> <span style="font-size:16px;"> </span> </p>
./configure --with-php-config=/www/server/php/71/bin/php-config
<span style="color:#333333;font-family:&quot;font-size:16px;background-color:#FFFFFF;">make</span> 
make install
<p style="color:#333333;font-family:&quot;font-size:16px;text-align:justify;background-color:#FFFFFF;"> <span style="font-family:&quot;font-size:16px;">3.安装完以后,修改php.ini文件,增加一行</span> </p> <p style="color:#333333;font-family:&quot;font-size:16px;text-align:justify;background-color:#FFFFFF;">
</p>
extension = yac.so
<p>
</p> <span style="font-family:&quot;font-size:16px;">重新加载php使之生效</span> <p>
</p>
Last modification:December 13th, 2017 at 11:43 pm