添加php源
sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
安装第二个版本php7.0(测试已有php7.2)
sudo apt install php7.0-fpm
切换php版本
update-alternatives --config php
update-alternatives --config phpize
update-alternatives --config php-config
修改php7.0监听端口
sudo vim/etc/php/7.0/fpm/pool.d/www.conf
; listen = /run/php/php7.0-fpm.sock
listen = 127.0.0.1:9000
重启php
sudo service php7.2-fpm stop
sudo service php7.0-fpm start