Ubuntu apt-get 安装php
sudo add-apt-repository -y ppa:ondrej/php
sudo apt-get updateapt-cache pkgnames | grep php7.1sudo apt-get install php7.4-fpmsudo apt-get install php7.4-mbstring
sudo apt-get install php7.4-bcmath
sudo apt-get install php7.4-mysql
sudo apt-get install php7.4-redis
sudo apt-get install php7.4-gd
sudo apt-get install php7.4-intl
sudo apt-get install php7.4-xml
sudo apt-get install php7.4-zip
sudo apt-get install php7.4-curl
需要在nginx http blok 中增加以下配置,否则请求会超时
fastcgi_buffering off;
$ sudo apt-get install software-properties-common
$ sudo add-apt-repository ppa:ondrej/php
$ sudo apt-get update
$ sudo apt-get install -y php7.0