Skip to main content
 首页 » 操作系统

Ubuntu搭建Http服务器

2022年07月27日704exmyth

一句命令:

sudo apt-get install apache2

产生的启动和停止文件是:/etc/init.d/apache2

  启动:sudo apache2ctl -k start

  停止:sudo apache2ctl -k stop

  重新启动:sudo apache2ctl -k restart

  配置文件保存在:/etc/apache2

Reference


本文参考链接:https://www.cnblogs.com/montai/p/13442871.html