Ubuntu14.04安装php7.2

1. apt -y install software-properties-common apt-transport-https lsb-release ca-certificates

2. add-apt-repository ppa:ondrej/php

3. apt update

4. apt install php7.2-fpm php7.2-mysql php7.2-curl php7.2-gd php7.2-mbstring php7.2-xml php7.2-xmlrpc php7.2-zip php7.2-opcache -y

5. sudo service php7.2-fpm start/stop/restart

6. service 命令就是调用/etc/init.d/php7.2-fpm

7. php.ini 和 php-fpm.conf 路径:/etc/php/7.2/fpm
8. php7.2-fpm.pid 和 php7.2-fpm.sock 路径: /run/php

 

 
   

相关文章