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

服务器   发布日期:2025年06月30日   浏览次数:320

talk is cheap,show me the code:

[root@LAMP1 lib]# php -v
PHP 5.3. (cli) (built: Oct   ::) 
Copyright (c) - The PHP Group
Zend Engine v2.3.0, Copyright (c) - Zend Technologies
[root@LAMP1 lib]# yum install php-bcmath
Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
 * base: mirrors.pubyun.com
 * extras: mirrors.pubyun.com
 * updates: mirrors.pubyun.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-bcmath.x86_64 :5.3.-.el6_6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==============================================================================================================================================================================================
 Package                                       Arch                                      Version                                             Repository                                  Size
==============================================================================================================================================================================================
Installing:
 php-bcmath                                    x86_64                                    5.3.-.el6_6                                      updates                                      k
Transaction Summary
==============================================================================================================================================================================================
Install        Package(s)
Total download size:  k
Installed size:  k
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download:  k
php-bcmath-5.3.-.el6_6.x86_64.rpm                                                                                                                                   |   kB     :     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : php-bcmath-5.3.-.el6_6.x86_64                                                                                                                                           / 
  Verifying  : php-bcmath-5.3.-.el6_6.x86_64                                                                                                                                           / 
Installed:
  php-bcmath.x86_64 :5.3.-.el6_6                                                                                                                                                          
Complete!
[root@LAMP1 lib]# ps -ef|grep httpd
root              Mar10 ?        :: /usr/sbin/httpd
apache         : ?        :: /usr/sbin/httpd
apache         : ?        :: /usr/sbin/httpd
apache         : ?        :: /usr/sbin/httpd
apache         : ?        :: /usr/sbin/httpd
apache         : ?        :: /usr/sbin/httpd
apache         : ?        :: /usr/sbin/httpd
apache         : ?        :: /usr/sbin/httpd
apache         : ?        :: /usr/sbin/httpd
root           : pts/    :: grep httpd
[root@LAMP1 lib]# /usr/sbin/httpd -k restart
[root@LAMP1 lib]# 

 

 

如果想卸载也是一样的:

yum remove PHP- bcmath 
httpd -k restart

即可。

以上就是centos中如何安装php-bcmath扩展?的详细内容,更多关于centos中如何安装php-bcmath扩展?的资料请关注九品源码其它相关文章!