linux 启动jar 包的脚本工具
#!/bin/sh
nohup java -Xms768m -Xmx768m -jar xxxx.jar > logs/xxxx.log 2>&1 &
bat 启动jar包的脚本
title xxxx
java -jar -Xms768m -Xmx768m -XX:MetaspaceSize=256m xxxxx.jar
pause
启动多个bat脚本
start /D ..\3.redis startup.bat
start /D ..\5.license-server\license-serverhhhh.bat
start /D ..\4.authorization-server dddd.bat
start /D ..\6.platform\1.platform\1.single\ccccc startup.bat
start /D ..\12.erp ggg.bat
启动脚本指定参数
@echo off
set LOG_FILE=application.log
set JAVA_OPTS=-Xms512m -Xmx1024m
set CLASSPATH=.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar
set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_231
set PATH=%JAVA_HOME%\bin;%PATH%
echo Starting Spring Boot application, logging to %LOG_FILE%
start java %JAVA_OPTS% -jar your-spring-boot-app.jar > %LOG_FILE% 2>&1
title usercenter-service-srv
java -jar -Xms512m -Xmx512m -Xmn256m -XX:MetaspaceSize=256m usercenter-service-srv.jar --spring.profiles.avicit=local > ./log/userserver.log 2>&1
pause
start /D .\7002_basecenter startup.bat
start /D .\7008_xbom startup.bat
start /D .\8082_userservice startup.bat