1、安裝前更新
sudo apt-get update # 獲取最新資源包
sudo apt-get upgrade # 更新全部軟件
sudo apt-get dist-upgrade #更新系統(tǒng)軟件
2吴超、安裝apache
sudo apt install apache2 -y
開啟|關(guān)閉|重啟服務(wù)器: /etc/init.d/apache2 start|stop|restart
在瀏覽器中輸入 http://localhost,出現(xiàn)以下畫面安裝成功

3、安裝mysql
sudo apt install mysql-server mysql-client
4溅固、安裝php
sudo apt install php7.0-mysql php7.0-curl php7.0-json php7.0-cgi php7.0 libapache2-mod-php7.0