sudo apt-get update
sudo apt-get install -y apache2
sudo service apache2 start
sudo service apache2 restart #重启
sudo update-rc.d apache2 enable
sudo apt-get update
sudo apt-get install -y apache2
sudo service apache2 start
sudo service apache2 restart #重启
sudo update-rc.d apache2 enable