简体   繁体   English

web 应用程序的安装最佳实践

[英]Installation best practices for a web application

I have a simple web application which will be running on machines which don't have internet connectivity.我有一个简单的 web 应用程序,它将在没有互联网连接的机器上运行。

I would like to support the ability to install, remove and support migration of WAR at a later stage.我想支持以后安装、删除和支持 WAR 迁移的能力。 This would be our deployment scenario:-这将是我们的部署方案:-

  1. The machines might not have Java and we would probably have to install it before deploying the application.这些机器可能没有 Java,我们可能必须在部署应用程序之前安装它。
  2. The web application (WAR) runs on top of jboss application server. web 应用程序 (WAR) 在 jboss 应用程序服务器之上运行。
  3. The application server needs to be run as a Windows service应用服务器需要作为 Windows 服务运行
  4. The entire application will be shipped in a CD.整个应用程序将在 CD 中提供。

I don't want to spend too much time on building an installer, but what should we do support the above scenario?我不想花太多时间在构建安装程序上,但是我们应该怎么做才能支持上述场景呢? Are there any tools which help in handling this?有什么工具可以帮助处理这个问题吗?

I recommend using a MSI package with an EXE bootstrapper which supports prerequisites.我建议使用带有支持先决条件的 EXE 引导程序的 MSI package。 This should cover all your requirements.这应该涵盖您的所有要求。

Regarding a setup authoring tool, it depends on what you want (free or commercial, with a GUI or with scripting etc.).关于设置创作工具,它取决于您想要什么(免费或商业,带有 GUI 或脚本等)。 You could use a Visual Studio setup project and Orca, but a commercial tool will be easier.您可以使用 Visual Studio 安装项目和 Orca,但商业工具会更容易。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM