1 Star 0 Fork 1.4K

yangsp/northstar

forked from dromara/northstar 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
env.sh 1013 Bytes
一键复制 编辑 原始数据 按行查看 历史
Huangwl 提交于 2023-03-12 14:44 . 精简环境脚本
#!/bin/bash
set -e
echo "准备环境依赖..."
yum install git wget python27 gcc gcc-c++ -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
# 安装Redis
if [[ $(which redis-server >/dev/null && echo $?) != 0 ]];
then
echo "安装Redis"
cd ~/northstar-env && wget --no-check-certificate http://download.redis.io/releases/redis-7.0.0.tar.gz
tar -xzf redis-7.0.0.tar.gz
rm -f ~/northstar-env/redis-7.0.0.tar.gz
cd redis-7.0.0
make
make install
redis-server --daemonize yes --maxmemory 512m --maxmemory-policy volatile-lfu
else
echo "Redis已安装"
fi
echo "环境安装完成"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/yangsp45/northstar.git
git@gitee.com:yangsp45/northstar.git
yangsp45
northstar
northstar
master

搜索帮助