How can I get spring-boot to run forever on ubuntu?

前端 未结 2 843
难免孤独
难免孤独 2021-02-08 15:44

I\'m trying to run spring-boot on a vm and have nginx proxy all request towards it. I\'ve got this working but when I run:

2条回答
  •  盖世英雄少女心
    2021-02-08 16:35

    If you are running you application in ubuntu, you can use nohup and & to run your process in background. It is simple and I hope it will solve your problem

    nohup mvn spring-boot:run &
    

    http://www.cyberciti.biz/tips/nohup-execute-commands-after-you-exit-from-a-shell-prompt.html

提交回复
热议问题