【问题标题】:ConnectionRefusedError: [WinError 10061][WinError 10061] No connection could be made because the target machine actively refused itConnectionRefusedError: [WinError 10061][WinError 10061] 由于目标机器主动拒绝,无法建立连接
【发布时间】:2020-02-07 09:05:30
【问题描述】:

这个错误到底是什么意思,我该如何修复它,我在本地主机的端口 8000 上运行服务器。

ConnectionRefusedError: [WinError 10061] 由于目标机器主动拒绝,无法建立连接

【问题讨论】:

  • 如果该端口上没有服务器侦听,也会出现此错误。你确定你的服务器真的在运行吗? ;-)

标签: python django localhost


【解决方案1】:

防火墙是否在服务器上运行?如果是这样,那可能会阻止连接。您可以禁用防火墙或在服务器端添加例外以允许端口 8000 上的连接。

【讨论】:

  • 在我的私人网络上禁用了防火墙,但问题仍然存在
猜你喜欢
  • 2020-07-07
  • 2021-01-04
  • 2019-07-10
  • 2021-12-22
  • 2022-12-10
  • 2018-12-01
  • 2021-02-08
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多