MAC電腦安裝openJdk


一、安全brew軟件

[1]安全命令地址:https://brew.sh/index_zh-cn

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
View Code

 

[2] 如命令無法使用則需要改host:https://blog.csdn.net/txl910514/article/details/105880125

macOS安裝Homebrew時總是報錯(Failed to connect to raw.githubusercontent.com port 443: Connection refused)

原因:由於某些你懂的因素,導致GitHub的raw.githubusercontent.com域名解析被污染了。


解決辦法:通過修改hosts解決此問題。

查詢真實IP

在https://www.ipaddress.com/查詢raw.githubusercontent.com的真實IP。

sudo vim /etc/hosts

添加內容如下:
199.232.28.133 raw.githubusercontent.com
View Code

 

二、安裝open-jdk

https://www.jianshu.com/p/8e82d7429528

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM