1.
- 安装指令:
sudo apt-get install apache2
- 卸载指令:
sudo apt-get remove apache2
- 启动:
sudo /etc/init.d/apache2 start
- 停止:
sudo /etc/init.d/apache2 stop
- 重启:
sudo /etc/init.d/apache2 restart
2. 浏览器测试: http://localhost:80
1.
sudo apt-get install apache2
sudo apt-get remove apache2
sudo /etc/init.d/apache2 start
sudo /etc/init.d/apache2 stop
sudo /etc/init.d/apache2 restart
2. 浏览器测试: http://localhost:80