zoukankan      html  css  js  c++  java
  • CentOS6.5安装指定的PHP版本(php5.5)(转)

    查询是否安装有php

    1. #rpm -qa|grep php  


    删除之前安装的php版本 (yum install 安装)

    1. #rpm -e php-fpm-5.3.3-47.el6.x86_64 --nodeps  
    2. #rpm -e php-common-5.3.3-47.el6.x86_64 --nodeps  
    3. #rpm -e php-cli-5.3.3-47.el6.x86_64 --nodeps  
    4. #rpm -e php-odbc-5.3.3-47.el6.x86_64 --nodeps  
    5. #rpm -e php-xml-5.3.3-47.el6.x86_64 --nodeps  
    6. #rpm -e php-pear-1.9.4-5.el6.noarch --nodeps  
    7. #rpm -e php-mbstring-5.3.3-47.el6.x86_64 --nodeps  
    8. #rpm -e php-ldap-5.3.3-47.el6.x86_64 --nodeps  
    9. #rpm -e php-bcmath-5.3.3-47.el6.x86_64 --nodeps  
    10. #rpm -e php-pecl-redis-2.2.8-1.el6.x86_64 --nodeps  
    11. #rpm -e php-pdo-5.3.3-47.el6.x86_64 --nodeps  
    12. #rpm -e php-gd-5.3.3-47.el6.x86_64 --nodeps  
    13. #rpm -e php-mysql-5.3.3-47.el6.x86_64 --nodeps  
    14. #rpm -e php-xmlrpc-5.3.3-47.el6.x86_64 --nodeps  
    15. #rpm -e php-pecl-igbinary-1.2.1-1.el6.x86_64 --nodeps  


    更新源

    1. #rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm  
    2. #rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm  


    查看php版本列表

    1. #yum list php*  


    安装php及相关软件

    #yum install php55w.x86_64 php55w-fpm.x86_64 php55w-mysql.x86_64 php55w-gd.x86_64 libjpeg* php55w-ldap.x86_64 php55w-odbc.x86_64 php55w-pear.noarch php55w-xml.x86_64 php55w-xmlrpc.x86_64 php55w-mbstring.x86_64 php55w-bcmath.x86_64 php-mhash

  • 相关阅读:
    第十周进度条
    冲刺阶段第十天
    冲刺阶段第九天
    冲刺阶段第八天
    冲刺阶段第七天
    冲刺阶段第六天
    第一次冲刺阶段(十一)
    第一次冲刺阶段(十)
    第一次冲刺阶段(九)
    第一次冲刺阶段(八)
  • 原文地址:https://www.cnblogs.com/renjidong/p/7046978.html
Copyright © 2011-2022 走看看