File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ function chooseOper() {
7373 git) ${filepath} /tool/git/install-git.sh;;
7474 svn) ${filepath} /tool/svn/install-svn.sh;;
7575 jdk8) ${filepath} /tool/jdk/install-jdk8.sh;;
76- maven) ${filepath} /tool/maven/install-maven .sh;;
76+ maven) ${filepath} /tool/maven/install-maven3 .sh;;
7777 nginx) ${filepath} /tool/nginx/install-nginx.sh;;
7878 nodejs) ${filepath} /tool/nodejs/install-nodejs.sh;;
7979 tomcat) ${filepath} /tool/tomcat/install-tomcat8.sh;;
Original file line number Diff line number Diff line change @@ -4,12 +4,12 @@ echo -e "\n>>>>>>>>> install jdk8"
44
55yum -y install java-1.8.0-openjdk-devel-debug.x86_64
66
7- cat > /etc/profile.d/jdk.sh << EOF
7+ cat >> /etc/profile << EOF
88JAVA_HOME=/usr/lib/jvm/java
99PATH=${JAVA_HOME} /bin:\$ PATH
1010CLASSPATH=.:\$ JAVA_HOME/lib/dt.jar:\$ JAVA_HOME/lib/tools.jar
1111export JAVA_HOME
1212export PATH
1313export CLASSPATH
1414EOF
15- chown root.root /etc/profile.d/jdk.sh
15+ source /etc/profile
Original file line number Diff line number Diff line change @@ -6,5 +6,13 @@ mkdir -p /opt/software/maven
66cd /opt/software/maven
77
88version=3.5.2
9- wget --no-check-certificate --no-cookies --header " Cookie: oraclelicense=accept-securebackup-cookie" http://mirrors.shuosc.org /apache/maven/maven-3/${version} /binaries/apache-maven-${version} -bin.tar.gz
9+ wget --no-check-certificate --no-cookies --header " Cookie: oraclelicense=accept-securebackup-cookie" http://mirrors.tuna.tsinghua.edu.cn /apache/maven/maven-3/${version} /binaries/apache-maven-${version} -bin.tar.gz
1010tar -zxvf apache-maven-${version} -bin.tar.gz
11+
12+ cat >> /etc/profile << EOF
13+ MAVEN_HOME=/opt/software/maven/apache-maven-\$ {version}
14+ PATH=\$ {MAVEN_HOME}/bin:\$ {PATH}
15+ export MAVEN_HOME
16+ export PATH
17+ EOF
18+ source /etc/profile
You can’t perform that action at this time.
0 commit comments