其实我也怀疑有这方面的原因。
《FreeBSD使用大全》上面说“为了验证服务器是否正常运行,不需要请求某个文档,只需要发送HEAD请求就可以了。
$telnet localhost 80
trying 127.0.0.1...
connected to localhost.
Escape character is '^]'
HEAD /http/1.0
HTTP/1.0 200 OK
Date:
如果服务器能像这个例子一样回应对80端口的连接请求,并对用户输入的请求命令返回一定的结果,那么就说明APACHE服务器安装和运行一切正常。”
我用这种方法验证得出的结果是:
# telnet localhost 80
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
# telnet bargate 80
Trying 218.13.33.206...
Connected to bargate.
Escape character is '^]'.
Connection closed by foreign host.