六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 676|回复: 0

centos中如何安装php-bcmath扩展?

[复制链接]
 楼主| 发表于 2015-6-8 16:54:34 | 显示全部楼层 |阅读模式
centos中如何安装php-bcmath扩展?
talk is cheap,show me the code:
  1. [root@LAMP1 lib]# php -v
  2. PHP 5.3.3 (cli) (built: Oct 30 2014 20:12:53)
  3. Copyright (c) 1997-2010 The PHP Group
  4. Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
  5. [root@LAMP1 lib]# yum install php-bcmath
  6. Loaded plugins: fastestmirror, presto
  7. Loading mirror speeds from cached hostfile
  8. * base: mirrors.pubyun.com
  9. * extras: mirrors.pubyun.com
  10. * updates: mirrors.pubyun.com
  11. Setting up Install Process
  12. Resolving Dependencies
  13. --> Running transaction check
  14. ---> Package php-bcmath.x86_64 0:5.3.3-40.el6_6 will be installed
  15. --> Finished Dependency Resolution

  16. Dependencies Resolved

  17. ==============================================================================================================================================================================================
  18. Package                                       Arch                                      Version                                             Repository                                  Size
  19. ==============================================================================================================================================================================================
  20. Installing:
  21. php-bcmath                                    x86_64                                    5.3.3-40.el6_6                                      updates                                     37 k

  22. Transaction Summary
  23. ==============================================================================================================================================================================================
  24. Install       1 Package(s)

  25. Total download size: 37 k
  26. Installed size: 29 k
  27. Is this ok [y/N]: y
  28. Downloading Packages:
  29. Setting up and reading Presto delta metadata
  30. Processing delta metadata
  31. Package(s) data still to download: 37 k
  32. php-bcmath-5.3.3-40.el6_6.x86_64.rpm                                                                                                                                   |  37 kB     00:00     
  33. Running rpm_check_debug
  34. Running Transaction Test
  35. Transaction Test Succeeded
  36. Running Transaction
  37.   Installing : php-bcmath-5.3.3-40.el6_6.x86_64                                                                                                                                           1/1
  38.   Verifying  : php-bcmath-5.3.3-40.el6_6.x86_64                                                                                                                                           1/1

  39. Installed:
  40.   php-bcmath.x86_64 0:5.3.3-40.el6_6                                                                                                                                                         

  41. Complete!
  42. [root@LAMP1 lib]# ps -ef|grep httpd
  43. root      1780     1  0 Mar10 ?        00:03:02 /usr/sbin/httpd
  44. apache    2510  1780  0 11:53 ?        00:00:00 /usr/sbin/httpd
  45. apache    2511  1780  0 11:53 ?        00:00:00 /usr/sbin/httpd
  46. apache    2512  1780  0 11:53 ?        00:00:00 /usr/sbin/httpd
  47. apache    2513  1780  0 11:53 ?        00:00:00 /usr/sbin/httpd
  48. apache    2514  1780  0 11:53 ?        00:00:00 /usr/sbin/httpd
  49. apache    2515  1780  0 11:53 ?        00:00:00 /usr/sbin/httpd
  50. apache    2516  1780  0 11:53 ?        00:00:00 /usr/sbin/httpd
  51. apache    2517  1780  0 11:53 ?        00:00:00 /usr/sbin/httpd
  52. root      2531  2474  0 11:56 pts/0    00:00:00 grep httpd
  53. [root@LAMP1 lib]# /usr/sbin/httpd -k restart
  54. [root@LAMP1 lib]#
复制代码

如果想卸载也是一样的:

yum remove php- bcmath
httpd -k restart

即可。

http://blog.csdn.net/qdujunjie/article/details/45478961
centos中如何安装php-bcmath扩展?

该会员没有填写今日想说内容.
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表