支持安装jdk

This commit is contained in:
bwcx_jzy 2020-10-14 15:41:10 +08:00
parent 9316a5bcdc
commit 79cd12a0d6
2 changed files with 12 additions and 1 deletions

View File

@ -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端不可安装在同一目录下
### 下载安装

View File

@ -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