英文:
Executing an api automatically on AWS Amazon
问题
我在搜索这个问题,但是没有找到任何东西。
我有一个Java Spring Boot应用程序,API,我已经将其上传到了亚马逊的EC2上,它可以运行。但是当我关闭命令提示符时,应用程序就会停止。我该如何配置它在亚马逊上自动启动?
英文:
I was searching about this issue and I did not find anything.
I have a java spring boot application, API, I already uploaded it on EC2 amazon and it is working. But when I close the prompt the app ends. How can I configure it to start automatically on amazon?
答案1
得分: 1
你需要按照Federico的说法将其安装为一个服务,或者你可以使用nohup命令运行。
英文:
You need to install it as a service, as Federico said, or you could run with nohup
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论