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

php安装msgpack

穆劲
2023-12-01

1打开网址下载扩展包 https://pecl.php.net/package/msgpack
直接下载地址:https://pecl.php.net/get/msgpack-2.0.3.tgz
wget https://pecl.php.net/get/msgpack-2.0.3.tgz

2 解压 tar xf msgpack-2.0.3.tgz 进入解压目录 cd msgpack-2.0.3/

3编译
(1)/www/server/php/72/bin/phpize
(2)./configure --with-php-config=/www/server/php/72/bin/php-config
(3)make && make install

4安装结束后打开php.ini 加入msgpack.so
; extension_dir = “ext”
extension = /www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718/msgpack.so

 类似资料: