php如何安装bcmath扩展脚本?(附代码)
16lz
2021-01-22
php如何安装bcmath扩展脚本?下面本篇文章给大家介绍一下php安装bcmath扩展脚本的方法。有一定的参考价值,有需要的朋友可以参考一下,希望对大家有所帮助。
#!/bin/bashbcmath_ini=/etc/php.d/40-bcmath.ini## 安装bcmath扩展cd /data/softssudo tar zxvf php-5.6.30.tar.gzcd /data/softs/php-5.6.30/ext/bcmath/sudo phpizesudo ./configuremake &&make install## 增加扩展配置cat > $bcmath_ini <<EOF; Enable bcmath extension moduleextension = bcmath.soEOFecho "bcmath安装完成......"
更多编程相关知识,请访问:编程入门!!