本文主要是介绍MAC环境配置,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
#JDK
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_241.jdk/Contents/Home
CLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:.
PATH=$JAVA_HOME/bin:$PATH:.
export JAVA_HOME CLASSPATH PATH
#MAVEN
M2_HOME=/Users/journey/Environment/apache-maven-3.6.3
PATH=$PATH:$M2_HOME/bin
export M2_HOME PATH
#GRADLE
GRADLE_HOME=/Users/journey/Environment/gradle-6.2.1
PATH=$PATH:$GRADLE_HOME/bin
export GRADLE_HOME PATH
#Zookeeper
ZOOKEEPER_HOME=/Users/journey/Environment/apache-zookeeper-3.5.9
PATH=$PATH:$ZOOKEEPER_HOME/bin
export ZOOKEEPER_HOME PATH
#TOMCAT
TOMCAT_HOME=/Users/journey/Environment/apache-tomcat-8.5.51
PATH=$PATH:$TOMCAT_HOME/bin
export TOMCAT_HOME PATH
#MySQL
MYSQL_HOME=/usr/local/mysql
PATH=$PATH:$MYSQL_HOME/bin
export MYSQL_HOME PATH
#NODEJS
NODE_HOME=/usr/local
PATH=$PATH:$NODE_HOME/bin
export NODE_HOME PATH
这篇关于MAC环境配置的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!