From 79cd12a0d6170bde13c18cb05401e0dcb3e5ea8d Mon Sep 17 00:00:00 2001 From: bwcx_jzy Date: Wed, 14 Oct 2020 15:41:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=AE=89=E8=A3=85jdk?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 11 ++++++++++- docs/install.sh | 2 ++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e846eb7f5..5b2b20648 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ > 特别提醒:在Windows服务器中可能有部分功能因为系统特性造成兼容性问题,建议在实际使用中充分测试。Linux目前兼容良好 -### 一键安装 +### 一键安装(linux) #### 服务端 @@ -83,6 +83,11 @@ yum install -y wget && wget -O install.sh https://keepbx.gitee.io/jpom/install.s yum install -y wget && wget -O install.sh https://cdn.jsdelivr.net/gh/jiangzeyin/Jpom/docs/install.sh && bash install.sh Server + +支持自动安装jdk环境 + +yum install -y wget && wget -O install.sh https://keepbx.gitee.io/jpom/install.sh && bash install.sh Server jdk + ``` #### 插件端 @@ -94,6 +99,10 @@ yum install -y wget && wget -O install.sh https://keepbx.gitee.io/jpom/install.s yum install -y wget && wget -O install.sh https://cdn.jsdelivr.net/gh/jiangzeyin/Jpom/docs/install.sh && bash install.sh Agent +支持自动安装jdk环境 + +yum install -y wget && wget -O install.sh https://keepbx.gitee.io/jpom/install.sh && bash install.sh Agent jdk + ``` >特别提醒:一键安装的时候注意执行命令不可在同一目录下,即Server端和Agent端不可安装在同一目录下 ### 下载安装 diff --git a/docs/install.sh b/docs/install.sh index 7ab16f155..10f6bf508 100644 --- a/docs/install.sh +++ b/docs/install.sh @@ -33,6 +33,8 @@ if [[ "$module" = "jdk" ]]; then echo 'export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar'>>/etc/profile echo 'export PATH=$PATH:$JAVA_HOME/bin'>>/etc/profile export JAVA_HOME=/usr/java/jdk1.8.0_251 + # 删除jdk压缩包 + rm -f jdk-8u251-linux-x64.tar.gz fi fi fi