- 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語言程序設計習題解析與上機指導(第4版)
- Web開發的貴族:ASP.NET 3.5+SQL Server 2008
- 軟件測試項目實戰之性能測試篇
- 數據結構(Java語言描述)
- AngularJS深度剖析與最佳實踐
- 深入淺出Android Jetpack
- PhoneGap Mobile Application Development Cookbook
- IBM Cognos Business Intelligence 10.1 Dashboarding cookbook
- Hands-On GUI Programming with C++ and Qt5
- UML軟件建模
- 大學計算機基礎實訓教程
- Learning Image Processing with OpenCV
- HTML5游戲開發實戰
- PyTorch生成對抗網絡編程
- Illustrator CS6中文版應用教程(第二版)