1打开网址下载扩展包 https://pecl.php.net/package/yar
wget https://pecl.php.net/get/yar-2.0.5.tgz
2 解压 tar xf yar-2.0.5.tgz 进入解压目录 cd yar-2.0.5/
3编译
(1)/www/server/php/72/bin/phpize
(2)./configure --with-php-config=/www/server/php/72/bin/php-config --enable-msgpack
(3)make && make install
4安装结束后打开php.ini 加入yar.so
; extension_dir = “ext”
extension = /www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718/yar.so