mykcs / on_my_zsh-0428

Apache License 2.0
0 stars 0 forks source link

curl: (7) Failed to connect to raw.githubusercontent.com port 443 after 18 ms: Couldn't connect to server #1

Open mykcs opened 7 months ago

mykcs commented 7 months ago
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
mykcs commented 7 months ago

ref https://blog.csdn.net/donaldsy/article/details/107482368

sudo nano /etc/hosts
pwd

原文件

##
# 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

根据 https://sites.ipaddress.com/raw.githubusercontent.com/ 加上

185.199.108.133 raw.githubusercontent.com

但是

(base) myk@miyuki-M2Max ~ % source /etc/hosts
/etc/hosts:7: command not found: 127.0.0.1
/etc/hosts:8: command not found: 255.255.255.255
/etc/hosts:9: command not found: ::1
/etc/hosts:10: command not found: 185.199.108.133
mykcs commented 7 months ago

但是成了 离谱

image