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)成功打開該網頁
在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章