一、安装好Apache后服务里没有Apache服务

  在命令行进入安装apache的bin目录下,输入命令
httpd.exe -k install -n Apache2.4

二、Apache web server Cannot load modules/mod_access_compat.so into server

       进入conf文件夹下httpd.conf文件,将ServerRoot和DocumentRoot修改为放置Apache文件的正确路径即可

三、Apache启动错误AH00558: httpd.exe: Could not reliably determine the server’s fully qualified domain name, using fe80::c9ed:e949:2ce6:5045. Set the ‘ServerName’ directive globally to suppress this message

       将 apache 的配置文件httpd.conf中的 ServerName 改成可用域名或如下配置

       ServerName localhost:80

       注意: 注释去掉

 

通过浏览器访问 http://localhost:80 ,如果页面显示 “It works!” ,即表示apache已安装并启动成功。

       



版权声明:本文为LinghanHsu原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/LinghanHsu/p/9069846.html