《PHP教程:yum命令安裝php7和相關(guān)擴(kuò)展》要點(diǎn):
本文介紹了PHP教程:yum命令安裝php7和相關(guān)擴(kuò)展,希望對您有用。如果有疑問,可以聯(lián)系我們。
PHP應(yīng)用安裝php7和相關(guān)擴(kuò)展
PHP應(yīng)用
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm (nginx)
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
PHP應(yīng)用1.cd /etc/yum.repos.d
PHP應(yīng)用2.nano remi.repo
PHP應(yīng)用
>>>>
[remi-php55]
name=Remi's PHP 5.5 RPM repository for Enterprise Linux 6 - $basearch
#baseurl=http://rpms.remirepo.net/enterprise/6/php55/$basearch/
mirrorlist=http://rpms.remirepo.net/enterprise/6/php55/mirror
# NOTICE: common dependencies are in "remi-safe"
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
>>>>>
PHP應(yīng)用將enabled設(shè)置為0;
PHP應(yīng)用3.nano remi.repo
PHP應(yīng)用
>>>
[remi-php70]
name=Remi's PHP 7.0 RPM repository for Enterprise Linux 6 - $basearch
#baseurl=http://rpms.remirepo.net/enterprise/6/php70/$basearch/
mirrorlist=http://rpms.remirepo.net/enterprise/6/php70/mirror
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
>>>>>
PHP應(yīng)用將enabled設(shè)置為1;
PHP應(yīng)用4.安裝擴(kuò)展:
PHP應(yīng)用
yum install php-solr php-opcache php-seasLog php-mysqlnd php-hprose php-mbstring php-mcrypt php-mongodb php-mysqli php-gd php-dom php-apc php-memcache php-redis
service php-fpm restart && service nginx restart
轉(zhuǎn)載請注明本頁網(wǎng)址:
http://www.snjht.com/jiaocheng/5899.html