简体   繁体   English

部署Spring引导应用程序的正确方法是什么

[英]What is the correct way to deploy a spring boot application

I just faced a strange problem, this is the first time i deploy a spring boot application on server 我刚遇到一个奇怪的问题,这是我第一次在服务器上部署一个spring boot应用程序

As usual i ran the application using java command java -jar myApp.jar 像往常一样,我使用java命令java -jar myApp.jar运行应用程序

after while, i see the application got stop without leaving any error message. 之后,我看到应用程序停止而没有留下任何错误消息。

so i don't know what is the problem, 所以我不知道出什么问题了

possible reason is java memory is not enough so i increased it to 7GB due it has socket 可能的原因是java内存不够,所以我把它增加到7GB,因为它有socket

but the problem still exist 但问题仍然存在

note that i dont have docker and the server is Linux ubuntu provided by Amazon light sail 请注意,我没有docker,服务器是由亚马逊轻帆提供的Linux ubuntu

The server is running a weblogic, jboss, glassfish, tomcat or something else? 服务器正在运行weblogic,jboss,glassfish,tomcat或其他工具? You dont use maven in this project? 你不在这个项目中使用maven吗? Try to build it using maven, with 'mvn clean install' in the root of the project. 尝试使用maven构建它,在项目的根目录中使用“mvn clean install”。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 用静态内容部署Spring Boot应用程序的正确方法是什么 - What's the correct way of deploying a spring boot application with static content 在没有 Web 服务器的 Spring-Boot 应用程序中,保持它运行的正确方法是什么? - In a Spring-Boot application without web server, what is the correct way to keep it running? 在 Spring Boot 中通过查询参数过滤响应的正确方法是什么? - What is the correct way to filter response by query parameter in Spring Boot? Thymeleaf 和 Spring 引导 - 向 model 添加属性。 正确的方法是什么? - Thymeleaf and Spring Boot - adding attributes to the model. What is the correct way? 在 Spring Boot 应用程序中存储文件的理想方式是什么? - what's the ideal way to store files in spring boot application? 连接 Spring Boot 应用程序和 google Cloud SQL 的推荐方法是什么? - What is the recomended way to connect spring boot application and google Cloud SQL? 将初始化代码添加到 Spring 引导应用程序的正确方法是什么? - What's the proper way to add initialization code to a Spring Boot application? 在 Spring Boot 应用程序中安排任务的最佳方法是什么 - What is best way to schedule task in spring boot application 使用Elastic BeansTalk CLI部署Spring Boot应用程序 - Deploy Spring Boot application with Elastic BeansTalk CLI 在Tomcat 6中部署Spring Boot应用程序(传统部署) - Deploy Spring Boot application in Tomcat 6 (Traditional deployment)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM