git:https://github.com/laruence/yar

先克隆 如果没有 git 需要先安装

yum install git

然后 克隆

git clone https://github.com/laruence/yar.git

然后 进入yar 目录

cd yar

开始编译安装

phpize
 ./configure --with-php-config=/usr/bin/php-config
make && make install

然后把扩展添加到 php配置文件中

cd /etc/php.d
vim yar.ini

写入:

extension=yar.so

保存退出。

重启php nginx

 

相关文章:

  • 2022-12-23
  • 2021-08-14
  • 2021-11-06
  • 2021-12-27
猜你喜欢
  • 2022-01-05
  • 2021-12-18
  • 2021-12-28
  • 2022-03-08
  • 2021-10-17
  • 2021-12-21
相关资源
相似解决方案