centOS上
因为看php源码中没有json模块,于是采用pecl自动编译安装:
# yum install php-devel
# yum install php-pear
# yum install gcc
# pear install pecl/json
# cd /etc/php.d
# echo “extension=json.so” > json.ini
# service httpd restart
2022-05-24 11:42:38
centOS上
因为看php源码中没有json模块,于是采用pecl自动编译安装:
# yum install php-devel
# yum install php-pear
# yum install gcc
# pear install pecl/json
# cd /etc/php.d
# echo “extension=json.so” > json.ini
# service httpd restart