简体   繁体   English

如何修复本地主机拒绝在Windows 10 Wamp服务器和Xampp上连接?

[英]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的问题,并尝试了他们的答案,但是没有运气。

  • Re-installed wamp (also tried xampp. non of these work) 重新安装了wamp(也尝试过xampp。这些工作都不行)
  • IIS is off IIS已关闭
  • Web Development.. thing in services is not running. Web Development ..服务中的事物未运行。
  • Tried netstat -aon and port 80 PID is same as wampapache64 process. 尝试过netstat -aon和端口80 PID与wampapache64进程相同。
  • changed listening port to 81 in httpd.conf in wamp => apache => 在wamp => apache =>中将httpd.conf中的侦听端口更改为81
  • Cleared browser cache 清除浏览器缓存
  • Wamp icon is green Wamp图标为绿色
  • Can't connect using 127.0.0.1 无法使用127.0.0.1连接

Nothing works. 什么都没有。

Screenshots: 屏幕截图:

在此处输入图片说明

PID是7724

在此处输入图片说明

在此处输入图片说明 在此处输入图片说明 在此处输入图片说明 在此处输入图片说明

  • I will assume the wamp icon in the system tray is green. 我将假定系统托盘中的wamp图标为绿色。 I think you should start tracing the root cause from the apache error/access log. 我认为您应该从apache错误/访问日志开始跟踪根本原因。
  • Try change the http port to 8080 and access localhost:8080. 尝试将http端口更改为8080并访问localhost:8080。 left click the wamp icon in the taskbar, go to apache > httpd.conf and edit this file: change "listen to port .. 80" to 8080. 左键单击任务栏中的wamp图标,转到apache> httpd.conf并编辑此文件:将“ listen to port .. 80”更改为8080。
  • 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. 然后重启电脑。

  • Skype default port is 80 and this might be having a conflict .. try to change it from Skype options. Skype的默认端口为80,这可能存在冲突..尝试从Skype选项进行更改。
  • Finally make sure the antivirus or any firewall you are having is not blocking your application requests. 最后,确保您拥有的防病毒软件或任何防火墙都没有阻止您的应用程序请求。

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.

相关问题 本地主机拒绝连接 Wamp - Localhost refused to connect Wamp 本地主机拒绝连接 xampp 问题 - localhost refused to connect on xampp issue localhost 拒绝连接 Xampp 问题 - Localhost refused to connect Xampp issue 如何将node.js连接到mysql和wamp / xampp服务器? - How to connect node.js to mysql and wamp/xampp server? Wamp 服务器未在 windows 10 中启动 - Wamp server not starting in windows 10 如何在xampp或wamp服务器的localhost中配置facebook api? 使用它的php.ini设置要求是什么? - how to configure facebook api in localhost in xampp or wamp server? what is php.ini settings requirement to use it? node Socket.io链接如何在服务器中提供not localhost(wamp / xampp) - node Socket.io links how will give in server not localhost(wamp/xampp) 如何使用系统的IP地址代替本地主机来运行在wamp / xampp服务器上运行的项目? - How to run a project running on wamp/xampp server using system's IP address in place of localhost? 无法在Windows 10系统中的wamp或xampp中安装PHP CodeSniffer - Unable to install PHP CodeSniffer in wamp or xampp in windows 10 system phonegap无法与本地主机上的xampp服务器连接 - phonegap doesn't connect with xampp server on localhost
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM