gpt4 book ai didi

spring-boot - 如何在 cpanel 上托管 Spring Boot 应用程序?

转载 作者:行者123 更新时间:2023-12-05 07:15:09 25 4
gpt4 key购买 nike

我有一个 Spring Boot 应用程序,我想将它托管在我的 VPS 服务器 (cpanel) 中。我正在使用带有 easyapache 4 的最新版本的 cpanel 和 WHM。

我完全按照这个网站上的步骤操作:https://dzone.com/articles/deploying-war-file-in-easy-apache-4-tomcat-experim

但是,没有任何结果。当我访问我的域名时出现错误 404。

如果有人可以帮助我解决这个问题或者之前做过这件事的人可以给出确切的步骤。

谢谢。

最佳答案

我也遇到了困难,使用附件中的链接你会有一个方向,但可能不是所有的东西都是 100% 相同的。过程中有任何问题都可以联系!

change the name of the .war file to ROOT.war , and follow all the procedures described in the link;

In the "application.properties" file, add the "server.port" configuration for the port you found in the link (step 2, part 1).

ex: server.port=10003

Open the file "ea-tomcat85/logs/catalina.out" to see the errors thrown

链接:https://suporte.hostgator.com.br/hc/pt-br/articles/360038980913-Como-configurar-o-Tomcat-

关于spring-boot - 如何在 cpanel 上托管 Spring Boot 应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59683588/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com