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

原文地址:https://www.cnblogs.com/redhat0019/p/11555001.html