cd /root/php/packages
wget https://pecl.php.net/get/msgpack-2.1.2.tgz
tar xzf msgpack-2.1.2.tgz && cd msgpack-2.1.2
phpize && ./configure && make && make install
echo -e "[msgpack]\nextension = msgpack.so" >> /root/php/bin/php74/lib/php.ini
php -i | grep msgpack
pkill php-fpm | php-fpm -R
cd /root/php/packages
wget https://pecl.php.net/get/msgpack-2.1.2.tgz
tar xzf msgpack-2.1.2.tgz && cd msgpack-2.1.2
phpize && ./configure && make && make install
echo -e "[msgpack]\nextension = msgpack.so" >> /root/php/bin/php74/lib/php.ini
php -i | grep msgpack
pkill php-fpm
php-fpm -R
此代码具有特殊性,需个人测试的请联系博主,索要基础性能测试代码。
上一节:igbinary 扩展安装与使用 - 数据序列化/反序列化
下一节:mysql相关 - mysqlnd、mysqli、pdo连接扩展