安装命令:
sudo apt-get install apache2;
ubuntu 下配置文件在/etc/apache2/apache2.conf中;
<start>
启动apache服务
/etc/init.d/apache2 start;
</start>
<restart>
重启apache服务
/etc/init.d/apache2 restart
</restart>
<stop>
停止apache服务
/etc/init/apache2 stop
</stop>
<webpath>
ubuntu 默认web文档路径为:/var/www/html;
在浏览器中输入:127.0.0.1即可看到html文件下的网页内容;
</webpath>
ubuntu Apache2 搭建及基本命令及配置
最新推荐文章于 2024-05-21 11:47:58 发布