Apache 服务器的安装与配置

下载地址:https://www.apachelounge.com/download/

下载后解压到英文路径下(不能包含中文)

安装:

使用管理员身份运行命令行:

进入Apache 解压路径中的 bin 目录

输入 httpd.exe ‐k install ‐n "Apache"

根据问题上网搜查

我遇到

 

 解决方案链接:https://blog.51cto.com/300second/767697

 

修改后:输入 httpd.exe ‐t  测试配置文件是否通过。

提示Syntax OK。

重新启动 Apache 服务

httpd.exe ‐k restart ‐n "Apache"

停止 Apache 服务

httpd.exe ‐k stop ‐n "Apache"

回到浏览器中,地址栏输入:http://localhost/,回车访问,这时正常应该看到It works!

 

 

转载:https://blog.csdn.net/qq_35001194/article/details/80650631

 

posted @ 2021-01-25 15:09  木屋小丑  阅读(218)  评论(0)    收藏  举报