首頁  >  文章  >  後端開發  >  centos 7 下安裝php 7

centos 7 下安裝php 7

不言
不言原創
2018-04-17 14:48:582221瀏覽

這篇文章介紹的內容是關於centos 7 下安裝php 7 ,有著一定的參考價值,現在分享給大家,有需要的朋友可以參考一下

1 安裝nginx

 yum install nginx


2 安裝epel來源

  yum install epel-release
    wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm && rpm -Uvh remi-release-7.rpm

3 安裝php

    yum --enablerepo=remi-safe -y install php71

4 安裝依賴

yum install php71-php-mcrypt php71-php-mcrypt php71-php-json php71-php-mbstring php71-php-xml php71-php-soap php71-php-xmlrpc php71-php-simplexml
                      php71-php-curl php71-php-mysqlnd

5 安裝php-fpm

 yum --enablerepo=remi-safe -y install php71-php-fpm

6 設定開機啟動

systemctl start php71-php-fpm     systemctl status php71-php-fpm.service
    systemctl enable php71-php-fpm

7 設定檔

#    /etc/ opt/remi/php71/
    /etc/opt/remi/php71/php-fpm.d/www.conf

相關建議:

#centos7 YUM 安裝PHP5.6

mac下方安裝php7詳解

centos7手動安裝PHP5.6.33詳解

#

以上是centos 7 下安裝php 7的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn