- WildFly Cookbook
- Luigi Fugaro
- 170字
- 2021-07-16 13:38:14
Running WildFly from a custom configuration folder
In this recipe, you will learn how to run WildFly from a custom configuration folder. This can be handy if you want to use the same WildFly installation folder, but run two or more WildFly instances with different configurations.
How to do it…
- What you have to do is to just copy the
standalone
folder to a path of your choice. - That's it! Now just run WildFly as usual, specifying your configuration folder by passing the
-Djboss.server.base.dir
directive:$ cd $WILDFLY_HOME $ ./bin/standalone.sh -Djboss.server.base.dir=/your/config/path
How it works…
On specification of a different jboss.server.base.dir
directory, WildFly tries to pick up the standalone.xml
file from the expected folder. In fact, your configuration path has to maintain the same folder structure. WildFly lets you override different paths, in case you need to.
The following is a table summarizing all such paths:
There's more…
Furthermore, you can use a different configuration file by specifying it via the --server-config
directive, as follows:
$ $WILDFLY_HOME/bin/standalone.sh --server-config=standalone-ha.xml
推薦閱讀
- C語言程序設計案例教程(第2版)
- Clojure for Domain:specific Languages
- PHP 編程從入門到實踐
- Instant QlikView 11 Application Development
- PLC編程及應用實戰
- Unity Shader入門精要
- OpenShift在企業中的實踐:PaaS DevOps微服務(第2版)
- Hands-On Enterprise Automation with Python.
- Go并發編程實戰
- 細說Python編程:從入門到科學計算
- Java 9 Programming By Example
- Python Deep Learning
- Drupal 8 Development Cookbook(Second Edition)
- 零基礎學Java第2版
- 3ds Max 2018從入門到精通