centos下安裝php-fpm的方法:1、安裝epel-release;2、安裝php7;3、安裝php7的yum來源;4、執行【systemctl start php-fpm】指令開啟服務。
環境:
centos7.4
安裝步驟如下:
#(相關學習影片推薦:java影片教學)
1、安裝epel-release
yum -y install epel-release
2、安裝PHP7
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
3、yum查看
yum search php70w-fpm #PHP7.0 yum search php71w-fpm #PHP7.1 yum search php72w-fpm #PHP7.2
4、安裝PHP 7.0、7.1的yum來源,然後再執行:
yum install php70w php70w-fpm php70w-cli php70w-common php70w-devel php70w-gd php70w-pdo php70w-mysql php70w-mbstring php70w-bcmath php70w-xml php70w-pecl-redis php70w-process php70w-intl php70w-xmlrpc php70w-soap php70w-ldap php70w-opcache安裝php 7.1以及擴充:
yum install php71w php71w-fpm php71w-cli php71w-common php71w-devel php71w-gd php71w-pdo php71w-mysql php71w-mbstring php71w-bcmath php71w-xml php71w-pecl-redis php71w-process php71w-intl php71w-xmlrpc php71w-soap php71w-ldap php71w-opcache安裝php 7.2以及擴充:
yum install -y php72w php72w-fpm php72w-cli php72w-common php72w-devel php72w-gd php72w-pdo php72w-mysql php72w-mbstring php72w-bcmath php72w-xml php72w-pecl-redis php72w-process php72w-intl php72w-xmlrpc php72w-soap php72w-ldap php72w-opcache5、開啟服務
systemctl start php-fpm6、開機開啟服務
systemctl enable php-fpm相關推薦:
以上是centos下怎麼安裝php-fpm的詳細內容。更多資訊請關注PHP中文網其他相關文章!