服务器初始化操作

1 sudo apt-get update

2 #]groupadd work

   #] useradd work -g work

3 wget http://211.162.127.25/files/32300000056F1F32/download.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/jdk-8u151-linux-x64.tar.gz

4 wget http://mirror.bit.edu.cn/apache/maven/maven-3/3.5.2/binaries/apache-maven-3.5.2-bin.tar.gz

5 初始化环境变量

export JAVA_HOME=/opt/jdk1.8.0_151
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

MAVEN_HOME=/opt/apache-maven-3.5.2
export MAVEN_HOME
export PATH=${PATH}:${MAVEN_HOME}/bin

 

posted on 2017-12-03 01:27  jis117  阅读(841)  评论(0编辑  收藏  举报

导航