1.安装之前先更新系统
sudo apt update
2.安装Apache2
sudo apt install apache2
3.安装PHP7.0
sudo apt install php7.0
sudo apt-get install libapache2-mod-php7.0
4.安装MySQL
sudo apt install mysql-server php7.0-mysql
sudo apt-get install mysql-client
mysql_secure_installation