Ubuntu
最后更新于:2022-04-02 02:34:23
[TOC]
## ubuntu
```
$ sudo apt-get install software-properties-common
$ sudo add-apt-repository ppa:ondrej/php
$ sudo apt-get update
$ sudo apt-get install php7.2
$ sudo apt-get install php7.2-mysql php7.2-curl php7.2-json php7.2-dev php7.2-mbstring php7.2-ctype php7.2-dom php7.2-gd php7.2-openssl php7.2-simplexml php7.2-xml php7.2-fpm php7.2-opcache php7.2-cli php7.2-apcu
```
';