1 Star 0 Fork 1.4K

嘉豪李/northstar-JDK21

forked from dromara/northstar 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
env.sh 572 Bytes
一键复制 编辑 原始数据 按行查看 历史
Huangwl 提交于 2023-05-20 15:31 . 更新环境脚本
#!/bin/bash
set -e
echo "准备环境依赖..."
yum install git wget -y
mkdir -p ~/northstar-env ~/northstar-dist
# 检查JDK环境
if [[ $(which java >/dev/null && echo $?) != 0 ]];
then
echo "安装JDK17"
cd ~/northstar-env && wget --no-check-certificate https://download.oracle.com/java/17/archive/jdk-17.0.5_linux-x64_bin.tar.gz
tar -xvf jdk-17.0.5_linux-x64_bin.tar.gz
rm -f jdk-17.0.5_linux-x64_bin.tar.gz
ln -sf ~/northstar-env/$(find jdk* -maxdepth 0 -type d)/bin/* /usr/local/bin/
else
echo "JDK17已安装"
java -version
fi
echo "环境安装完成"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/jia-hao-li/northstar-JDK21.git
git@gitee.com:jia-hao-li/northstar-JDK21.git
jia-hao-li
northstar-JDK21
northstar-JDK21
master

搜索帮助