mac使用整理

jeff.sheng
Java领域优质创作者
博客专家认证
2020-06-18 07:18:20
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
...全文
3158 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
jeff.sheng 2020-07-14
  • 打赏
  • 举报
回复
-----------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
jeff.sheng 2020-07-09
  • 打赏
  • 举报
回复
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!
jeff.sheng 2020-06-19
  • 打赏
  • 举报
回复
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界面进行操作

1,543

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 Solaris
社区管理员
  • Solaris
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧