docker centos PHP7.2 安装 bcmath数学扩展

1. 登录服务器

2. 登录docker 

docker exec -it ***容器名*** /bin/bash

3. 查看 PHP版本

php -v

4. 查找扩展包

yum search bcmath

5 选择版本并安装 

yum install php72-php-bcmath.x86_64

6. 重启服务

systemctl restart httpd

7. 查看扩展是否安装成功

参考站点地址 :

https://www.itranslater.com/qa/details/2583442044312093696

https://pecl.php.net/

原文地址:https://www.cnblogs.com/http-500/p/13625352.html