Package an application including java war file, Tomcat, DB

最后都变了- 提交于 2019-12-10 15:31:32

问题


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..

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

is it possible???

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...


回答1:


In short: Yes, it is.

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.

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?



来源:https://stackoverflow.com/questions/5777941/package-an-application-including-java-war-file-tomcat-db

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!