Linux centor 更换 PHP 版本 
                                                    
                        
                    
                    
  
                    
                    centor系统更换php版本
旧php卸载
- 查看php包及扩展
rpm -qa|grep php运行结果如下
php-pdo-5.1.6-27.el5_5.3
php-mysql-5.1.6-27.el5_5.3
php-xml-5.1.6-27.el5_5.3
php-cli-5.1.6-27.el5_5.3
php-common-5.1.6-27.el5_5.3
php-gd-5.1.6-27.el5_5.3- 手动卸载,有依赖,则先卸载所依赖的
rpm -e php-pdo-5.1.6-27.el5_5.3
error: Failed dependencies:
        php-pdo is needed by (installed) php-mysql-5.1.6-27.el5_5.3.i386
rpm -e  php-mysql-5.1.6-27.el5_5.3
rpm -e  php-pdo-5.1.6-27.el5_5.3- 安装php
yum install php72w php72w-cli php72w-fpm php72w-common php72w-devel php72w-embedded php72w-gd php72w-mbstring php72w-mysqlnd php72w-opcache php72w-pdo php72w-xml - 安装单个扩展
yum install php72w-bcmath- 启动php-fpm
php-fpm- 重启nginx
nginx -s reload本作品采用《CC 协议》,转载必须注明作者和本文链接
 
           风吹过有夏天的味道 的个人博客
 风吹过有夏天的味道 的个人博客
         
                     
                     
           
           关于 LearnKu
                关于 LearnKu
               
                     
                     
                     粤公网安备 44030502004330号
 粤公网安备 44030502004330号 
 
推荐文章: