cd /usr/local/src
wget -c https://pecl.php.net/get/msgpack-2.1.2.tgz
tar zxvf msgpack-2.1.2.tgz
cd msgpack-2.1.2
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make && make install
vi /usr/local/php/etc/php.ini
在最后写入 extension = msgpack.so
systemctl restart php-fpm