官方网站:https://pecl.php.net/package/msgpack
操作步骤:
1 | wget https://pecl.php.net/get/msgpack-2.0.2.tgz |
1 | tar xvf msgpack-2.0.2.tgz |
1 | cd msgpack-2.0.2/ |
1 | phpize |
1 | ./configure --with-php-config=/usr/local/php/bin/php-config |
1 | make && make install |
1 | #vi /usr/local/php/etc/php.ini |
安装成功,然后把msgpack.so加到php.ini里,重启php,完成安装。