[英]How to fix localhost refused to connect on Windows 10 Wamp server and Xampp?
I've installed WAMP Server on Windows 10 and it was working fine. 我已经在Windows 10上安装了WAMP Server,并且工作正常。 But when I try to load localhost today it gives me refused to connect error.
但是当我今天尝试加载本地主机时 ,它给了我拒绝连接错误。 I've read some questions on Stack Overflow and tried their answers but no luck.
我已经阅读了一些有关Stack Overflow的问题,并尝试了他们的答案,但是没有运气。
Nothing works. 什么都没有。
Screenshots: 屏幕截图:
Try the hosts file with only the initial records and test. 尝试仅包含初始记录的主机文件并进行测试。
127.0.0.1 localhost
::1 localhost
127.0.0.1 localhost
::1 localhost
If you are facing the error from the apache errors log file 如果您面临apache错误日志文件中的错误
(OS 10038)An operation was attempted on something that is not a socket.
(OS 10038)尝试对非套接字的对象进行操作。 : AH00332: winnt_accept: getsockname error on listening socket, is IPv6 available?
:AH00332:winnt_accept:侦听套接字上的getsockname错误,IPv6是否可用?
then do the following: * Run 'command prompt' as administrator and run the command netsh winsock reset
. 然后执行以下操作:*以管理员身份运行“命令提示符”,然后运行命令
netsh winsock reset
。 and restart the PC. 然后重启电脑。
firstly, uninstall wampp as well as xampp server from your PC. 首先,从您的PC卸载wampp和xampp服务器。 Also delete the wampp/xampp folders in C drive.
还要删除C驱动器中的wampp / xampp文件夹。
then install wampserver 2.0i from the link below- wampserver 2.0i 然后从下面的链接安装wampserver 2.0i- wampserver 2.0i
after installation, start wamppserver and try to open localhost in chrome browser. 安装后,启动wamppserver并尝试在chrome浏览器中打开localhost。 if localhost doesnt work, then try localhost:80 hope it helps!!
如果localhost不起作用,请尝试localhost:80希望对您有所帮助!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.