發(fā)表日期:2019-03 文章編輯:小燈 瀏覽次數(shù):4103
php安裝包目錄:/data/php5.6.14/
PHP安裝路徑:/usr/local/php/
(下面步驟中的具體路徑設(shè)置,大家根據(jù)自己的實際情況設(shè)置即可。)
在PHP安裝包中找到j(luò)son擴展目錄
cd /data/php5.6.14/ext/json/
運行phpize
/usr/local/php/bin/phpize
編譯安裝:
./configure --with-php-config=/usr/local/php/bin/php-config make && make install
這時候json.so就已經(jīng)在/usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/目錄下生成了
設(shè)置PHP配置文件php.ini,添加下面一行
extension=json.so
最后重啟服務(wù),使用phpinfo()查看PHP-json擴展是否安裝成功。
通過下面命令直接安裝:
sudo apt-get install php5-json
最后重啟服務(wù)即可。
日期:2019-03 瀏覽次數(shù):5013
日期:2019-03 瀏覽次數(shù):4668
日期:2019-03 瀏覽次數(shù):4606
日期:2019-03 瀏覽次數(shù):5054
日期:2019-03 瀏覽次數(shù):4153
日期:2019-03 瀏覽次數(shù):4030
日期:2019-03 瀏覽次數(shù):4059
日期:2019-03 瀏覽次數(shù):3845
日期:2019-03 瀏覽次數(shù):4102
日期:2019-03 瀏覽次數(shù):3973
日期:2019-03 瀏覽次數(shù):3246
日期:2019-03 瀏覽次數(shù):4355
日期:2019-03 瀏覽次數(shù):3362
日期:2019-03 瀏覽次數(shù):3257
日期:2019-03 瀏覽次數(shù):3368
日期:2019-03 瀏覽次數(shù):3386
日期:2019-03 瀏覽次數(shù):3350
日期:2019-03 瀏覽次數(shù):3321
日期:2019-03 瀏覽次數(shù):4084
日期:2019-03 瀏覽次數(shù):4614
日期:2019-03 瀏覽次數(shù):5594
日期:2019-03 瀏覽次數(shù):4174
日期:2019-03 瀏覽次數(shù):4817
日期:2019-03 瀏覽次數(shù):3801
日期:2019-03 瀏覽次數(shù):3300
日期:2019-03 瀏覽次數(shù):4296
日期:2019-03 瀏覽次數(shù):3355
日期:2019-03 瀏覽次數(shù):3253
日期:2019-03 瀏覽次數(shù):3642
日期:2019-03 瀏覽次數(shù):2734
Copyright ? 2013-2018 Tadeng NetWork Technology Co., LTD. All Rights Reserved.