找到与服务器对应版本的php安装包
在扩展包中找到需要安装的插件,进入该文件夹,phpize
.configure
sudo make
复制module下的.so文件至php中扩展库文件夹;
php.ini中加入扩展配置,指向该.so文件。