Apache配置完成无法打开localhost或127.0.0.1

弄了一天了都没成功,快哭了~~

因为要学习android的网络编程,需要使用Apache服务器。

安装完成之后,apache服务启动了,端口也没有被占用,就是打开不了localhost

求大神帮帮我啊~~!

下面是log的error日志:
[Sun May 24 19:27:58 2015] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Sun May 24 19:27:58 2015] [notice] Child 5072: Exit event signaled. Child process is ending.
[Sun May 24 19:27:59 2015] [notice] Child 5072: Released the start mutex
[Sun May 24 19:28:00 2015] [notice] Child 5072: All worker threads have exited.
[Sun May 24 19:28:00 2015] [notice] Child 5072: Child process is exiting
[Sun May 24 19:28:00 2015] [notice] Parent: Child process exited successfully.
[Sun May 24 19:28:08 2015] [notice] Apache/2.2.25 (Win32) configured -- resuming normal operations
[Sun May 24 19:28:08 2015] [notice] Server built: Jul 10 2013 01:52:12
[Sun May 24 19:28:08 2015] [notice] Parent: Created child process 2764
[Sun May 24 19:28:08 2015] [notice] Child 2764: Child process is running
[Sun May 24 19:28:08 2015] [notice] Child 2764: Acquired the start mutex.
[Sun May 24 19:28:08 2015] [notice] Child 2764: Starting 64 worker threads.
[Sun May 24 19:28:08 2015] [notice] Child 2764: Starting thread to listen on port 8080.

  • 恩。后面还有,没看到
  • 说在8080 端口等待连接了。
  • 你浏览器上打127.0.0.1:8080试试

日志的意思是说,系统收到了要求关机的信号,正在准备关机,(关机的时候所有的连接是不会接受的)

陪的是Tomcat服务器吗

可以打开就代表成功了。
默认端口号是8080,通常在计算机只有使用80端口的可以不用输入端口号直接进行访问。你可以修改appache中的默认端口号,将8080修改为80。这样你输入http://127.0.0.1就可以了。