Apache环境
localhost:82
问题:
浏览器输入localhost:82,没有响应(昨天还一切正常),但是127.0.0.1:82可以访问
情况:
1.错误日志如下
apache error.log
httpd.conf 红笔是我所更改过的地方

hosts文件如下
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an inpidual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on inpidual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
127.0.0.1 localhost
localhost 127.0.0.1
#0.0.0.1 mssplus.mcafee.com
0.0.0.1 mssplus.mcafee.com
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
1.把你的hosts文件贴出来。
2.试试访问127.0.0.1:82
感谢大家的热心帮助,我卸载了重新装了一个,可以运行了