上个举例:
nohup java -XX:+UseG1GC -Xms512m -Xmx512m -DSERVER_PORT=3321 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=3322 -jar wanyee-mainbiz-api.jar --spring.profiles.active=dev> test.log2>&1 &
拆分:
nohup java
-XX:+UseG1GC
-Xms512m -Xmx512m
-DSERVER_PORT=3321
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=3322
-jar test-api.jar
--spring.profiles.active=dev
> test.log 2>&1 &