mac電腦下安裝wget:
首先安裝homebrew(無腦執行,大致意思就是用國內代理):
curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh >> brew_install
sed -i ".bak" 's|BREW_REPO="https://github.com/Homebrew/brew"|BREW_REPO="http://mirrors.ustc.edu.cn/brew"|' ./brew_install
/bin/bash ./brew_install
# 這一步驟不是必須,如果之前已經安裝brew成功的可以執行
cd "$(brew --repo)"
git remote set-url origin http://mirrors.ustc.edu.cn/brew.git
## 進入
cd "$(brew --repo)/Library/Taps/homebrew/"
rm -rf ./*
git clone http://mirrors.ustc.edu.cn/homebrew-core.git
git clone http://mirrors.ustc.edu.cn/homebrew-cask.git
brew update
# 更換鏡像
echo 'export HOMEBREW_BOTTLE_DOMAIN=http://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.bash_profile
source ~/.bash_profile
然后安裝wget:
brew install wget
uj5u.com熱心網友回復:
mac下安裝kafkamanager步驟:1 wget https://github.com/yahoo/kafka-manager/archive/2.0.0.2.zip
2 unzip 2.0.0.2.zip
3 進入主目錄進行編譯:./sbt clean dist
4 修改conf/application.properties,修改kafka-manager.zkhosts="localhost:2181“
5 啟動:bin/kafka-manager -Dconfig.file=conf/application.conf -Dhttp.port=9000,默認埠9000
6 打開http://localhost:9000/驗證web界面進行操作
uj5u.com熱心網友回復:
mac下安裝gradle-6.3步驟:wget https://services.gradle.org/distributions/gradle-6.3-all.zip
unzip gradle-6.3-all.zip
sudo vim /etc/profile
export PATH=$PATH:~/Downloads/gradle-6.3/bin
source /etc/profile
gradle -v
Welcome to Gradle 6.3!
uj5u.com熱心網友回復:
-----------mac下更換brew源// 替換brew.git
cd "$(brew --repo)"
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
// 替換homebrew-core.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
// 如果home目錄下沒找到.bash_profile檔案直接創建即可
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.bash_profile
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/17834.html
標籤:Solaris
上一篇:rabbitmq延時插件無法啟動,查list顯示確實安裝成功
下一篇:虛擬機中Linux雙網卡ip地址
