永久更改WildFly 10配置(standalone.xml)

时间:2016-12-08 10:59:03

标签: configuration jboss wildfly wildfly-10

如何将这两个Wildfly 10配置更改永久化?

  • MAX-参数= “4000”
  • < access-log />

如果我将它们写入 standalone.xml 并重新启动Wildfly,它们就会消失。

<subsystem xmlns="urn:jboss:domain:undertow:3.1">
  <buffer-cache name="default"/>
  <server name="default-server">
    <http-listener name="default" socket-binding="http" redirect-socket="https" max-parameters="4000" />
    <host name="default-host" alias="localhost">
      <location name="/" handler="welcome-content"/>
      <access-log/>
      <filter-ref name="server-header"/>
      <filter-ref name="x-powered-by-header"/>
    </host>
  </server>
...

哈里·

1 个答案:

答案 0 :(得分:4)

在手动编辑standalone.xml之前关闭服务器,或者如果要动态设置它,请使用命令行控制台对其进行编辑。

相关问题