Linux中jar包指定端口启动并记录日志:

nohup java -jar -Dserver.port=38080  group-buying-0.0.1-SNAPSHOT.jar   >log.log &

 

启动时,指定正式或者测试环境

nohup java -jar /opt/jar/group-buying.jar --spring.profiles.active=prod >/opt/jar/prod.log &

相关文章:

  • 2022-01-08
  • 2022-12-23
  • 2021-11-29
  • 2021-11-16
  • 2022-12-23
  • 2021-06-12
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-15
  • 2022-12-23
  • 2021-12-14
  • 2022-12-23
  • 2021-12-18
  • 2022-12-23
相关资源
相似解决方案