Mac:www.jetbrains.com 拒绝了我们的连接请求。

文章目录

  • 问题
  • 原因
  • 解决

问题

想下载 pycharm,出现:
www.jetbrains.com 拒绝了我们的连接请求。

原因

在hosts文件中已经配置了该网址的IP,但那IP是本地IP。导致找不到正确的IP。

解决

要把这些有关的IP给删掉。
(1)查找出 hosts 文件
在命令终端,打开hosts文件存放路径:open /private/etc ;搜索 hosts 文件 ;拷贝文件到桌面,用文本编辑器打开,可以发现:

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1	localhost
255.255.255.255	broadcasthost
::1             localhost

127.0.0.1	account.jetbrains.com
127.0.0.1	www.jetbrains.com

(2) 删掉跟jetbrains有关的IP

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1	localhost
255.255.255.255	broadcasthost
::1             localhost

(3)把修改后的文件放回原路径
(4)成功打开该网页
Mac:www.jetbrains.com 拒绝了我们的连接请求。_第1张图片

你可能感兴趣的:(问题)