关于在 Web 服务器上运行 .war 的建议

发布于 2025-01-05 04:10:47 字数 181 浏览 3 评论 0原文

我已经创建了一个 Web 应用程序 (.war),我想将其放到网上。我当然需要一台服务器。 我需要购买一台装有jboss或tomcat的服务器吗? 当我获得服务器后,如何运行我的 .war 文件?

我只从像 godaddy 这样的网站购买过主机,我所需要做的就是上传 html 或 css 文件,

我感谢任何建议:)

I have created a web application (.war) and I want to put it online. I need a server of course.
Do I need to buy a server that has jboss or tomcat on it?
When I get my server how do I run my .war file?

I have only ever bought hosting from sites like godaddy and all I needed to do was upload html or css files

I appreciate any advice :)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

相权↑美人 2025-01-12 04:10:47

如果您只是想体验一下,这里将免费(临时)托管 .war 应用程序。

http://www.eatj.com/

apache 文档并不是世界上最直接的对于 tomcat,但对于部署 .war 的绝对基础知识,实际上您需要做的就是将 .war 放入 $YOUR_TOMCAT_INSTALL_HOME/webapps 目录中并启动服务器,然后它就会关闭并运行。如果它似乎不起作用,日志文件应该有异常消息来提示您出了什么问题。

http://tomcat.apache.org/tomcat-5.5-doc/deployer -howto.html

阅读此处并通过 google 搜索 .war Web 应用程序托管,找到可以为机架空间/虚拟机付费的地方,具体取决于您的流量/安全/集成需求(数据库、第三方) API、证券、授权、付款等)

Here's a place that will host .war applications for free (temporarily), if you just want to get a feel for it.

http://www.eatj.com/

The apache documentation isn't the most straight-forward in the world for tomcat, but for the absolute basics of deploying a .war, really all you need to do is plop the .war into the $YOUR_TOMCAT_INSTALL_HOME/webapps directory and start the server, and it is off and running. If it doesn't seem to work, the log files should have exception messaging to clue you in on what went wrong.

http://tomcat.apache.org/tomcat-5.5-doc/deployer-howto.html

Read there and google search for .war web application hosting to find places you can pay for rackspace / VMs, depending on what your traffic / security / integrations needs might be (Databases, Third Party APIs, Securities, Authorizations, Payments, etc)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文