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

 

posted @ 2019-09-20 09:39  林**  阅读(149)  评论(0编辑  收藏  举报