ZERO
????持续更新 请关注:https://zorkelvll.cn/blogs/zorkelvll/articles/2018/11/02/1541171981714
背景
??本文主要是集中记录在Linux-CentOS7.2系统环境下的,常用的一些软件环境变量的配置情况,供查找和参考!
1、jdk
vim /etc/profile
JAVA_HOME="/root/app/jdk1.8.0_181"
CLASS_PATH=".:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar"
PATH=".$PATH:$JAVA_HOME/bin"
export JAVA_HOME CLASS_PATH PATH
2、maven
vim /etc/profile
export M2_HOME=${HOME}/app/apache-maven-3.5.4
export PATH=$PATH:$M2_HOME/bin
3、golang
vim /etc/profile
export GOROOT=${HOME}/go1.11.1
export GOPATH=${HOME}/gopath
export GOBIN=${GOPATH}/bin
export PATH=${PATH}:${GOBIN}:${GOROOT}/bin
#其中 gopath 下建目录 pkg,bin,src