一、安装报错curl: Failed to connect to raw.githubusercontent.com port:443的解决方法
1、方法一:将下面内容保存为brew_install.rb,然后ruby brew_install.rb
#!/usr/bin/ruby
STDERR.print <<EOS
Warning: The Ruby Homebrew installer is now deprecated and has been rewritten in
Bash. Please migrate to the following command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
EOS
Kernel.exec "/bin/bash", "-c", '/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"'
2、方法二:/etc/hosts增加重定向
199.232.28.133 raw.githubusercontent.com
网友评论