yum命令安裝php7和相關(guān)擴展
更新時間:2016年07月04日 09:18:09 投稿:hebedich
本文給大家簡單總結(jié)了一下在Linux中使用yum命令安裝PHP7和其他相關(guān)擴展的方法,有需要的小伙伴可以參考下
安裝php7和相關(guān)擴展
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
1.cd /etc/yum.repos.d
2.nano remi.repo
>>>> [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 >>>>>
將enabled設(shè)置為0;
3.nano remi.repo
>>> [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 >>>>>
將enabled設(shè)置為1;
4.安裝擴展:
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
您可能感興趣的文章:
相關(guān)文章
PHP數(shù)字前補0的自帶函數(shù)sprintf 和number_format的用法(詳解)
下面小編就為大家?guī)硪黄狿HP數(shù)字前補0的自帶函數(shù)sprintf 和number_format的用法(詳解)。小編覺得挺不錯的,現(xiàn)在就分享給大家,也給大家做個參考。一起跟隨小編過來看看吧2017-02-02php中有關(guān)合并某一字段鍵值相同的數(shù)組合并的改進
這篇文章主要介紹了php中有關(guān)合并某一字段鍵值相同的數(shù)組合并的改進,需要的朋友可以參考下2015-03-03php?overtrue/pinyin拓展實現(xiàn)漢字轉(zhuǎn)拼音
這篇文章主要為大家介紹了php?overtrue/pinyin拓展實現(xiàn)漢字轉(zhuǎn)拼音示例,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進步,早日升職加薪2023-11-11PHP實現(xiàn)數(shù)據(jù)四舍五入的方法小結(jié)【4種方法】
這篇文章主要介紹了PHP實現(xiàn)數(shù)據(jù)四舍五入的方法,結(jié)合實例形式總結(jié)分析了php使用number_format()、round()、sprintf()格式化及intval()等函數(shù)實現(xiàn)數(shù)據(jù)四舍五入的4種操作方法,需要的朋友可以參考下2019-03-03