啟動伺服器
通過解壓縮分發安裝 Wildfly 後,可以通過在 bin
目錄上執行 standalone.sh
指令碼來啟動它:
$ ./bin/standalone.sh
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /mnt/storage/tools/servers/wildfly-10.0.0.Final
JAVA: java
JAVA_OPTS: -server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true
=========================================================================
11:54:33,781 INFO [org.jboss.modules] (main) JBoss Modules version 1.5.1.Final
11:54:34,096 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final
11:54:34,193 INFO [org.jboss.as] (MSC service thread 1-6) WFLYSRV0049: WildFly Full 10.0.0.Final (WildFly Core 2.0.10.Final) starting
...
...
11:54:37,653 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 10.0.0.Final (WildFly Core 2.0.10.Final) started in 4357ms - Started 273 of 559 services (374 services are lazy, passive or on-demand)
如果沒有引數,則使用預設配置。要覆蓋預設配置,可以在命令列上提供引數。
--admin-only Set the server's running type to
ADMIN_ONLY causing it to open
administrative interfaces and accept
management requests but not start other
runtime services or accept end user
requests.
-b <value>, -b=<value> Set system property jboss.bind.address
to the given value
-b<interface>=<value> Set system property
jboss.bind.address.<interface> to the
given value
-c <config>, -c=<config> Name of the server configuration file
to use (default is "standalone.xml")
(Same as --server-config)
--debug [<port>] Activate debug mode with an optional
argument to specify the port. Only
works if the launch script supports it.
-D<name>[=<value>] Set a system property
-h, --help Display this message and exit
--read-only-server-config=<config> Name of the server configuration file
to use. This differs from
'--server-config' and '-c' in that the
original file is never overwritten.
-P <url>, -P=<url>, Load system properties from the given
--properties=<url> url
-S<name>[=<value>] Set a security property
--server-config=<config> Name of the server configuration file
to use (default is "standalone.xml")
(Same as -c)
-u <value>, -u=<value> Set system property
jboss.default.multicast.address to the
given value
-v, -V, --version Print version and exit
-secmgr Runs the server with a security manager
installed.