我正在修改 JBoss EAP 6.0.1 中独立/配置目录中的standalone-full-ha.xml 文件,但是当我重新启动应用程序服务器时,standalone-full-ha.xml 更改会恢复回来到之前的状态。
修改standalone-full-ha.xml文件的过程是什么?在修改此文件之前我需要更改任何其他配置吗??
请指教。
提前致谢。
最佳答案
Jboss 可以在运行时保存对配置文件的更改。正常过程还会使 Jboss 在关闭时将设置文件保存回磁盘。 (顺便说一句,在域模式下,您的部署也会写入配置文件中,以便您可以准确地打开它们并查看您现在部署的内容。如果您重新启动 Jboss,它将读取配置文件并继续重新部署重新启动之前部署的应用程序的数量)
这意味着您编辑的配置文件在关机时被覆盖。
I generally edit the config file at a separate location and then move it to the config directory. I would actually encourage you to also version control this setting file since it over time probably will contain lots of small changes.
关于java - 如何在jboss中修改standalone-full-ha.xml,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15280393/