10.5.3. 用部署扫描器卸载独立服务器实例的应用程序
这个任务展示了用部署扫描器卸载独立服务器实例的应用程序的方法。如 第 10.1 节 “关于应用程序部署” 所述,这个方法是为了方便开发人员而保留的,对于产品环境下的管理我们推荐管理控制台和管理 CLI 方法。
注意
过程 10.9. 用下列方法之一卸载应用程序
卸载应用程序
有两种方法可以卸载应用程序,这取决于您是否想从 deployment 目录删除应用程序还是只修改它的部署状态。通过删除 marker 文件进行卸载
删除已部署的应用程序的example.war.deployedmarker 文件来触发部署扫描器从 runtime 卸载应用程序。- 结果
- 部署扫描器卸载应用程序并创建一个
example.war.undeployedmarker 文件。应用程序仍保留在 deployment 目录里。
通过删除应用程序进行卸载
从 deployment 目录删除应用程序来触发部署扫描器从 runtime 卸载应用程序。- 结果
- 部署扫描器卸载应用程序并创建一个
filename.filetype.undeployedmarker 文件。应用程序现在不会出现在 deployment 目录里了。
应用程序文件从应用服务器里卸载且不会出现在管理服务器的 Deployments 屏幕上了。

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.