当前位置: 首页 > 工具软件 > Msgpack-php > 使用案例 >

php安装msgpack扩展

晋奕
2023-12-01
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
 类似资料: