首页 > 技术文章 > httpd apache服务 安装

redhat0019 2019-09-20 09:39 原文

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

 

推荐阅读