Apache ServerName 启动问题

运行apache2.2 windows版本 启动脚本,结果抛出下面的异常:

 

D:\Program Files\Apache2.2\bin>httpd.exe -DToTest
httpd.exe: Could not reliably determine the server's fully qualified domain name
, using 192.168.1.100 for ServerName

 

 

看提示,ServiceName有问题,查看httpd.conf配置文件,发现初始ServerName时注释掉的;

于是去掉#,修改安装时的域名,为localhost,启动正常

 

其实是由于ServiceName与请求的IP对应不起来无法解析的原因,也可以再host中绑定安装时配置的域名;

你可能感兴趣的:(apache,windows,脚本)