1 Star 0 Fork 4K

thinkcodee/O2OA

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
start_aix.sh 2.06 KB
一键复制 编辑 原始数据 按行查看 历史
rooo000 提交于 2024-02-29 10:51 +08:00 . 更新脚本,增加申威服务器支持.
#!/bin/bash
# Copyright (c) http://www.o2oa.net/
current_dir="$(
cd "$(dirname "$0")"
pwd
)"
cd ${current_dir}
if [ -d ${current_dir}/local/update ]; then
for D in commons configSample localSample jvm servers store config local; do
if [ ! -d ${current_dir}/$D ]; then
mkdir ${current_dir}/commons
fi
done
if [ -f ${current_dir}/local/update/o2server/version.o2 ]; then
echo 'update o2server.'
for D in commons configSample localSample jvm servers store; do
if [ -d ${current_dir}/local/update/o2server/$D ]; then
echo "update ${current_dir}/$D."
cp -Rf -p ${current_dir}/local/update/o2server/$D ${current_dir}/
fi
done
for F in console.jar index.html src.zip; do
if [ -f ${current_dir}/local/update/o2server/$F ]; then
echo "update ${current_dir}/$F."
cp -f -p ${current_dir}/local/update/o2server/$F ${current_dir}/
fi
done
for A in "start" "stop" "restart" "console" "service"; do
for B in "_windows.bat" "_windows_debug.bat" "_linux.sh" "_linux_debug.sh" "_linux_min.sh" "_macos.sh" "_macos_debug.sh" "_arm.sh" "_arm_debug.sh" "_mips.sh" "_mips_debug.sh" "_raspi.sh" "_raspi_debug.sh" "_aix.sh" "_aix_debug.sh" "_sw.sh" "_sw_debug.sh"; do
if [ -f ${current_dir}/local/update/o2server/$A$B ]; then
echo "update ${current_dir}/$A$B."
cp -f -p ${current_dir}/local/update/o2server/$A$B ${current_dir}/
fi
done
done
echo "update ${current_dir}/version.o2."
cp ${current_dir}/local/update/o2server/version.o2 ${current_dir}/
echo "clean local/update directory."
rm -Rf ${current_dir}/local/update
echo "the update is complete, please restart the server."
exit 1
fi
fi
setsid ${current_dir}/jvm/aix_java11/bin/java -javaagent:${current_dir}/console.jar -server -Djava.awt.headless=true -Xms2g -Xmx4g -Duser.timezone=GMT+08 -XX:+HeapDumpOnOutOfMemoryError -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI --module-path=${current_dir}/commons/module_java11 --upgrade-module-path=${current_dir}/commons/module_java11/compiler.jar:${current_dir}/commons/module_java11/compiler-management.jar -jar ${current_dir}/console.jar
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/thinkcodee/O2OA.git
git@gitee.com:thinkcodee/O2OA.git
thinkcodee
O2OA
O2OA
master

搜索帮助