打包应用程序,包括Java War文件,Tomcat,DB [英] Package an application including java war file, Tomcat, DB

查看:73
本文介绍了打包应用程序,包括Java War文件,Tomcat,DB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个基于Java的Web应用程序,我有源代码以及war文件,该应用程序使用mySql,并且需要将某些Web服务器(例如tomcat)全部添加到可以直接安装在window上的某些程序包中和linux机器直接..

i have a java based web application, i have the source code as well as the war file, the application uses mySql and need some web server like tomcat all to be added to some package that can be directly installed on window and linux machines directly..

我需要一口气设置数据库,WebServer和应用程序.如果它也能为所有人创建服务,那就太好了.

i need to setup DB, WebServer, and app in one go. Would be great if it can create services for all as well.

有可能吗?

我的意思是用户应该只给出要存储的位置,而所有内容都应该一次性存储,这是否可行?如果是的话,请指导我怎么做...

i mean the user should just give the location to store and everything should get stored in one go, is it feasible? and if yes please guide me how to do so...

推荐答案

简而言之:是的.

诸如 XAMPP 之类的项目已经在采用这种方法.所有相关软件组件都在一个ZIP文件中,您可以将其提取到用户硬盘上的任意位置.然后,所有配置在引用文件时都使用相对路径.

Projects like XAMPP are already following that approach. All relevant software components are inside a single ZIP file which you can extract to an arbitrary location on the user's harddisk. All configuration then uses relative paths when referencing files.

因此,从本质上讲,您将需要付出一些努力才能使安装"尽可能简单.也许您可以仅基于XAMPP之类的项目并使用已经提供的基础架构?

So essentially, you will have to put in a little effort in advance to make the "installation" as easy as possible. Maybe you can simply build upon a project like XAMPP and use the infrastructure already provided?

这篇关于打包应用程序,包括Java War文件,Tomcat,DB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆