过程中可能会出现的问题及解决办法:

1、出错信息:ServerRoot must be a valid directory

     解决方法:打开\Apache24\conf\httpd.conf,搜索Define SRVROOT,把后面的地址改成Apache实际地址,比如说我的:G:\win10\Apache httpd\httpd-2.4.38-o102r-x64-vc14-r2\Apache24

2、出错信息:以一种访问权限不允许的方式做了一个访问套接字的尝试。

                  : AH00072: make_sock: could not bind to address [::]:80

               解决方法:打开\Apache24\conf\httpd.conf,搜索Listen,把Listen后面的80改为8080,出错是因为80端口被占用了,换掉就可以

           3、出错信息:通常每个套接字地址(协议/网络地址/端口)只允许使用一次。 

                   : AH00072: make_sock: could not bind to address [::]:443

               解决方法:打开\Apache24\conf\extra\httpd-ahssl.conf,搜索Listen,把Listen后面的443改为442。打开\Apache24\conf\extra\httpd-ssl.conf,搜索Listen,把Listen后面的443改为442。同样是端口占用的问题。