yum search php7,yum install php7 in centos6
如果有安裝的PHP包,先刪除他們yum list installed | grep php
yum remove php.x86_64 php-cli.x86_64 php-common.x86_64 php-gd.x86_64 php-ldap.x86_64 php-mbstring.x86_64 php-mcrypt.x86_64 php-mysql.x86_64 php-pdo.x86_64
yum 安裝我們需要的軟件1.安裝epel軟件源1.rpm -qa | grep epel-release 確認(rèn)當(dāng)前機(jī)器是否用 epel-release (這個(gè)源有非常豐富的軟件包)
2.sudo yum install epel-release
3.yum --disablerepo=epel -y update ca-certificates2.php7.1 + php-fpm + nginx + apache 統(tǒng)統(tǒng)都可以用 yum 安裝啦rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpmyum search php71w 看下為php7.1版本提供了哪些包常用包說明:
mod_php71w.x86_64 : PHP module for the Apache HTTP Server
php71w-bcmath.x86_64 : A module for PHP applications for using the bcmath library
php71w-cli.x86_64 : Command-line interface for PHP
php71w-common.x86_64 : Common files for PHP
php71w-devel.x86_64 : Files needed for building PHP extensions
php71w-fpm.x86_64 : PHP FastCGI Process Manager
php71w-gd.x86_64 : A module for PHP applications for using the gd graphics library
php71w-ldap.x86_64 : A module for PHP applications that use LDAP
php71w-mbstring.x86_64 : A module for PHP applications which need multi-byte string handling
php71w-mcrypt.x86_64 : Standard PHP module provides mcrypt library support
php71w-mysqlnd.x86_64 : A module for PHP applications that use MySQL databases
php71w-pdo.x86_64 : A database access abstraction module for PHP applications
php71w-pecl-redis.x86_64 : Extension for communicating with the Redis key-value store
php71w-opcache.x86_64 : An opcode cache Zend extension
php71w-soap.x86_64 : A module for PHP applications that use the SOAP protocol
php71w-xml.x86_64 : A module for PHP applications which use XML3.安裝yum install mod_php71w.x86_64 php71w-fpm.x86_64 php71w-devel.x86_64 php71w-bcmath.x86_64 php71w-cli.x86_64 php71w-common.x86_64 php71w-gd.x86_64 php71w-ldap.x86_64 php71w-mbstring.x86_64 php71w-mcrypt.x86_64 php71w-mysqlnd.x86_64 php71w-pdo.x86_64 php71w-pecl-redis.x86_64 php71w-opcache.x86_64 php71w-soap.x86_64 php71w-xml.x86_64 -y
如果選擇用 nginx 那么 mod_php71w.x86_64 就可以不裝了,這個(gè)包會(huì)自動(dòng)裝 apache.
創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎(jiǎng)勵(lì)來咯,堅(jiān)持創(chuàng)作打卡瓜分現(xiàn)金大獎(jiǎng)總結(jié)
以上是生活随笔為你收集整理的yum search php7,yum install php7 in centos6的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: PHP URL的处理函数,php中url
- 下一篇: php5.3教程,Php 5.3发布