赞
踩
下载:
找到Java8
双击dmg,然后弹出pkg文件
command+space打开搜索,找到终端
自动配置好了环境
clare@ClareTungdeMacBook-Pro ~ % java -version
java version "1.8.0_301"
Java(TM) SE Runtime Environment (build 1.8.0_301-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.301-b09, mixed mode)
下载maven:https://maven.apache.org/download.cgi
打开终端
clare@ClareTungdeMacBook-Pro ~ % vim ~/.bash_profile
export MAVEN_HOME=/Applications/apache-maven-3.8.2
export PATH=$PATH:$MAVEN_HOME/bin
clare@ClareTungdeMacBook-Pro ~ % source ~/.bash_profile
clare@ClareTungdeMacBook-Pro ~ % mvn -v
Apache Maven 3.8.2 (ea98e05a04480131370aa0c110b8c54cf726c06f)
Maven home: /Applications/apache-maven-3.8.2
Java version: 1.8.0_301, vendor: Oracle Corporation, runtime: /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home
Default locale: zh_CN, platform encoding: UTF-8
OS name: "mac os x", version: "10.16", arch: "x86_64", family: "mac"
clare@ClareTungdeMacBook-Pro ~ %
clare@ClareTungdeMacBook-Pro ~ % brew install git
clare@ClareTungdeMacBook-Pro ~ % git --version
git version 2.33.0
git config --global user.name "ClareTung"
git config --global user.email "xxx@yeah.net"
ssh-keygen -t rsa -C "xxx@yeah.net"
clare@ClareTungdeMacBook-Pro ~ % cd .ssh
vim id_rsa.pub
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
brew -v
Homebrew >=2.5.0 (shallow or no git repository)
xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.
Homebrew/homebrew-core (no Git repository)
xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.
Homebrew/homebrew-cask (no Git repository)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。