httpd apache服务 安装
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 apache2sudo apt-get remove apache2sudo /etc/init.d/apache2 startsudo /etc/init.d/apache2 stopsudo /etc/init.d/apache2 restart2. 浏览器测试: http://localhost:80