添加安装sdk脚本

pull/11/head
Zhang Peng 2018-02-09 13:55:54 +08:00
parent 2038388d4b
commit 3e702ecfb6
3 changed files with 24 additions and 11 deletions

View File

@ -54,6 +54,7 @@ cat << EOF
[jdk8] install jdk8 [maven] install maven
[tomcat] install tomcat8 [nginx] install nginx
[nodejs] install node.js [elk] install elk
[sdk] install sdkman
Press <CTRL-D> to exit
Please input key
@ -66,18 +67,19 @@ function chooseOper() {
while read key
do
case ${key} in
sys) ${filepath}/sys/init.sh;;
libs) ${filepath}/lib/install-libs.sh;;
sys ) ${filepath}/sys/init.sh;;
libs ) ${filepath}/lib/install-libs.sh;;
2 | tools) ${filepath}/tool/install-all.sh;;
git) ${filepath}/tool/git/install-git.sh;;
svn) ${filepath}/tool/svn/install-svn.sh;;
jdk8) ${filepath}/tool/jdk/install-jdk8.sh;;
maven) ${filepath}/tool/maven/install-maven3.sh;;
nginx) ${filepath}/tool/nginx/install-nginx.sh;;
nodejs) ${filepath}/tool/nodejs/install-nodejs.sh;;
tomcat) ${filepath}/tool/tomcat/install-tomcat8.sh;;
elk) ${filepath}/tool/elk/install-elk.sh;;
2 | tools ) ${filepath}/tool/install-all.sh;;
git ) ${filepath}/tool/git/install-git.sh;;
svn ) ${filepath}/tool/svn/install-svn.sh;;
jdk8 ) ${filepath}/tool/jdk/install-jdk8.sh;;
maven ) ${filepath}/tool/maven/install-maven3.sh;;
nginx ) ${filepath}/tool/nginx/install-nginx.sh;;
nodejs ) ${filepath}/tool/nodejs/install-nodejs.sh;;
tomcat ) ${filepath}/tool/tomcat/install-tomcat8.sh;;
elk ) ${filepath}/tool/elk/install-elk.sh;;
sdk ) ${filepath}/tool/sdk/install-sdk.sh;;
* ) echo "${key} is invalid key";;
esac

View File

@ -20,6 +20,7 @@
# 编辑工具emacs、vim
# 流量工具iftop、nethogs
# 抓包工具tcpdump
# 压缩工具unzip、zip
###################################################################################
# 核心工具
echo -e "\n>>>>>>>>> install coreutils(df、du)"
@ -78,3 +79,6 @@ yum install -y nethogs
# 抓包工具
echo -e "\n>>>>>>>>> install tcpdump"
yum install -y tcpdump
# 压缩工具
yum install -y unzip

View File

@ -0,0 +1,7 @@
#!/bin/bash
echo -e "\n>>>>>>>>> install sdk"
curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk version