将 Java Web 应用程序与 jboss、mysql 和 activemq 一起打包以进行部署

发布于 2024-09-07 03:54:50 字数 185 浏览 2 评论 0原文

我有一个使用 JBoss、MySQL 和 ActiveMQ 的 springframework Web 应用程序。

目前,我必须手动安装和配置 JBoss、MySQL 和 ActiveMQ 和 JBoss。

打包应用程序的最佳方法是什么,以便用户可以进行一键安装(在 Linux 平台上,也许在 Windows 上也可以?)

I have a springframework web application that uses JBoss, MySQL and ActiveMQ.

At the moment, I have to install and configure JBoss, MySQL and ActiveMQ and JBoss manually.

What is the best way to package the application so a user can maybe do a one click install (on Linux platform, maybe Windows too?)

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

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

发布评论

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

评论(2

心不设防 2024-09-14 03:54:50

“正确”的方法是下载源代码或 src.rpm(或 src.rpm 的等效项,具体取决于您的发行版)并正确重新打包它们。如果您从未搞乱过打包 Linux 应用程序,那么这可能会花费您很长时间,并且会产生平庸的结果,除非您愿意投入大量时间。

更简单的方法是编写 shell 脚本。将您键入的每个 shell 命令复制到 .sh 文件中,并以特权用户身份运行该文件。如果您手动编辑文件(使用 vim、emacs 或 gedit),请改为使用 perl、sed 和 awk 编辑文件,或者只是通过从本地 Web 服务器卷曲修改后的版本或从 scp 复制来粉碎文件。

如果您愿意,您可以在脚本中包含安装软件包以及配置它们的命令。

The "proper" way to do it is to pull down the source or src.rpms (or the equivalent of src.rpms depending on your distro) and repackage them correctly. If you have never messed with packaging linux application then this will probably take you a long time and will yield mediocre results unless you are willing to invest a lot of time.

An easier method is to write a shell script. Copy every shell command you type into a .sh file and run that file as a privileged user. If you edit files manually (with vim, emacs or gedit) instead edit the files with perl, sed, and awk, or just crush the files by curl'ing the modified version from a local webserver or copied from scp.

You can include the commands to install the packages as well as configure them in the script if you like.

最舍不得你 2024-09-14 03:54:50

就 ActiveMQ 而言,您始终可以将其嵌入到您的应用程序中。看看 http:// activemq.apache.org/how-do-i-embed-a-broker-inside-a-connection.html 了解更多信息

As far as ActiveMQ is in question, you can always embed it in your application. Take a look at http://activemq.apache.org/how-do-i-embed-a-broker-inside-a-connection.html for more info

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