Ubuntu安装php7.4


2020-03-03 17:07:19 by sikoay with 0 comments 1 Hits
Blog 1

1.先安装一下这个命令 add-apt-repository

apt-get install software-properties-common

 

2.添加第三方源:

add-apt-repository ppa:ondrej/php

apt-get update

 

3. 安装php:

apt-get install php7.4 php7.4-fpm php7.4-mysql php7.4-gd php7.4-mbstring php7.4-json php7.4-curl php7.4-dom php7.4-gmp php7.4-zip

service php7.4-fpm start

php -v

 

4. 修改 /etc/php/7.4/fpm/pool.d/www.conf 中listen

Tags:

回复 (0)

Leave a Comment