- 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
推薦閱讀
- 計算思維與算法入門
- Mastering Scientific Computing with R
- CKA/CKAD應試教程:從Docker到Kubernetes完全攻略
- Effective Python Penetration Testing
- Visual C++數字圖像處理技術詳解
- 3D少兒游戲編程(原書第2版)
- Getting Started with NativeScript
- Citrix XenServer企業運維實戰
- Scala編程(第5版)
- Django實戰:Python Web典型模塊與項目開發
- Raspberry Pi Robotic Projects(Third Edition)
- HTML+CSS+JavaScript編程入門指南(全2冊)
- Learning Cocos2d-JS Game Development
- Splunk Essentials
- Enterprise Application Architecture with .NET Core