赞
踩
打开终端,输入命令(国内镜像)
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
根据步骤提示进行即可;期间会提示安装GIT,选择安装。
/opt/homebrew/Library/Homebrew/version.rb:369:in `initialize': Version value must be a string; got a NilClass () (TypeError)
from /opt/homebrew/Library/Homebrew/os/mac/version.rb:29:in `initialize'
from /opt/homebrew/Library/Homebrew/os/mac.rb:18:in `new'
from /opt/homebrew/Library/Homebrew/os/mac.rb:18:in `version'
from /opt/homebrew/Library/Homebrew/os/mac.rb:48:in `prerelease?'
from /opt/homebrew/Library/Homebrew/os.rb:17:in `<module:OS>'
from /opt/homebrew/Library/Homebrew/os.rb:1:in `<top (required)>'
from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /opt/homebrew/Library/Homebrew/global.rb:118:in `<top (required)>'
from /opt/homebrew/Library/Homebrew/brew.rb:15:in `require_relative'
from /opt/homebrew/Library/Homebrew/brew.rb:15:in `<main>'
当前brew版本与系统不兼容导致,升级brew,解决问题
/opt/homebrew/bin/brew update-reset
JDK下载地址
需选择ARM版
双击下载好的dmg包,继续双击pkg包,接下来根据向导进行完成安装。
# 打开终端
cd ~
touch .bash_profile
open .bash_profile
在打开的文件中输入
export PATH
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-1.8.jdk/Contents/Home
export JAVA_BIN=/Library/Java/JavaVirtualMachines/jdk-1.8.jdk/Contents/Home/bin
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
# 配置文件立即生效
source .bash_profile
# 查看 JAVA_HOME 目录
echo $JAVA_HOME
# 查看 JDK 版本信息
java -version
通过brew安装
# 安装命令
brew install gradle
# 查看gradle安装路径
brew list gradle
# 查看本地是否安装了nginx
brew info nginx
可以看到本地还未安装nginx
#安装nginx
brew install nginx
# nginx 安装路径
/opt/homebrew/etc/nginx/
# nginx 启动程序路径;启动
/opt/homebrew/Cellar/nginx/1.25.4/bin/nginx
#nginx 进程查看
ps -ef|grep nginx
打开浏览器验证,访问 localhost:8080
1、完成上述JDK安装
2、下载安装IntelliJ IDEA;在这里获取激活码
3、完成上述gradle安装
4、IDEA中配置gradle
idea->Settings->Build,Execution,Deployment->Build Tools->Gradle
在Gradle user home下配置gradle 安装路径
这里安装的是Docker Desktop for Mac
Docker Desktop for Mac 安装路径
安装完成后,登陆账号进入主界面,左下角显示“Engine running”,代表docker正在运行。
终端 docker命令也可使用。
方式二:通过命令行安装Docker,此方式不带GUI客户端
brew install docker --cask
SSH远程客户端工具
Termius安装路径
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。