After you have installed the JBoss distribution, it is wise to perform a simple startup test to validate that there are no major problems with your Java VM/operating system combination. To test your installation, move to the bin directory and execute the run.bat or run.sh script, as appropriate for your operating system. Your output should look like the following and contain no error or exception messages:
$ sh run.sh ========================================================================= JBoss Bootstrap Environment JBOSS_HOME: /tmp/jboss-4.0.4.GA JAVA: java JAVA_OPTS: -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dprogram.name=run.sh CLASSPATH: /tmp/jboss-4.0.4.GA/bin/run.jar:/lib/tools.jar ========================================================================= 23:28:48,561 INFO [Server] Starting JBoss (MX MicroKernel) ... 23:29:09,249 INFO [Server] JBoss (MX MicroKernel) [4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)] Started in 20s:679ms
If your output is similar to this (accounting for installation directory differences), you are now be ready to use JBoss.
Using run.sh without any arguments starts the server using the default server configuration file set. To start with an alternate configuration file set, you pass in the name of the directory under JBOSS_DIST/server that you want to use as the value to the -c command line option. For example, to start with the minimal configuration file set you would specify:
$ ./run.sh -c minimal ... 23:37:41,582 INFO [Server] JBoss (MX MicroKernel) [4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)] Started in 2s:212ms
The run script supports the following options:
usage: run.sh [options] -h, --help Show this help message -V, --version Show version information -- Stop processing options -D<name>[=<value>] Set a system property -d, --bootdir=<dir> Set the boot patch directory; Must be absolute or url -p, --patchdir=<dir> Set the patch directory; Must be absolute or url -n, --netboot=<url> Boot from net with the given url as base -c, --configuration=<name> Set the server configuration name -B, --bootlib=<filename> Add an extra library to the front bootclasspath -L, --library=<filename> Add an extra library to the loaders classpath -C, --classpath=<url> Add an extra url to the loaders classpath -P, --properties=<url> Load system properties from the given url -b, --host=<host or ip> Bind address for all JBoss services -g, --partition=<name> HA Partition name (default=DefaultDomain) -u, --udp=<ip> UDP multicast address -l, --log=<log4j|jdk> Specify the logger plugin type
To shutdown the server, you simply issue a Ctrl-C sequence in the console in which JBoss was started. Alternatively, you can use the shutdown.sh command.
[bin]$ ./shutdown.sh -S
The shutdown script supports the following options:
A JMX client to shutdown (exit or halt) a remote JBoss server. usage: shutdown [options] <operation> options: -h, --help Show this help message (default) -D<name>[=<value>] Set a system property -- Stop processing options -s, --server=<url> Specify the JNDI URL of the remote server -n, --serverName=<url> Specify the JMX name of the ServerImpl -a, --adapter=<name> Specify JNDI name of the MBeanServerConnection to use -u, --user=<name> Specify the username for authentication -p, --password=<name> Specify the password for authentication operations: -S, --shutdown Shutdown the server -e, --exit=<code> Force the VM to exit with a status code -H, --halt=<code> Force the VM to halt with a status code
Use of the shutdown command requires a server configuration that contains jmx-invoker-service.xml service, so the shutdown command cannot be used with the minimal configuration.
相关推荐
echo "Stopping JBoss..." # 使用您的实际JBOSS_HOME路径替换以下路径 /path/to/jboss/bin/jboss-cli.sh --connect --command=:shutdown else echo "JBoss is not running." fi sleep 5 # 确保服务器完全关闭 ...
SRIM,全称为Stopping and Range of Ions in Matter,是一组用于计算离子在物质中停止和射程的程序。这个工具特别关注离子与原子间的碰撞,采用完整的量子力学处理方式来描述这一过程。SRIM始终将移动的原子视为...
topic postings in their once-helpful newsgroups, and fear that the community of newsgroup readers will dissolve in disgust.Stopping Spam looks at the problem of spam and explains ways you can ...
讲述LINUX 下的并口编程。包含: 1 Programming interface 2,Starting and stopping: open and close Control 3,Transferring data: read and write 4,Waiting for events: poll and select6 5,Examples
This chapter discusses starting and stopping the database instance, and managing initialization parameters. Chapter 6, "Managing Database Storage Structures" This chapter discusses management of the ...
MySQL Certification Study Guide is the official guide to studying for and passing the two MySQL ...Starting, Stopping, Configurings MySQL Upgrading MySQL Interpreting Error Messages Much More!
This guide is for the administrator of a webMethods Integration ...as starting and stopping the server, configuring the server, seing up user accounts and security, and managing packages and services.
Starting and stopping cache flushing levels是Write-back方式下生效的两个设置,它们影响控制器如何处理未写入磁盘的缓存内数据。缓存内数据写入磁盘称为flushing。可以配置Starting and stopping cache flushing ...
1999_tsitsiklis_Optimal stopping of Markov processes Hilbert space theory, approximation algorithms, and an application to pricing high-dimensional financial derivatives
Along with conventional problems of statistics and probability, the investigation of problems occurring in what is now referred to as stochastic theory of optimal control also started in the 1940s and...
Starting and Stopping the GlassFish Server 41 Starting the Administration Console 42 Starting and Stopping the Java DB Server 43 Building the Examples 44 Tutorial Example Directory Structure 44 ...
该EarlyStopping类pytorchtool.py用于创建一个对象来跟踪验证损失的同时培养了模型。 每当验证损失减少时,它将保存模型的检查点。 我们在EarlyStopping类中将patience参数设置为在上次验证损失改善后要中断训练...
HA领事+保管箱+保管箱UI 该项目是在高可用性(HA)配置中使用 , 和的示例。 方便地打包为服务,可通过进行配置。 特征: dnsmasq使Consul DNS可用于所有... 请参见[ Starting and stopping部分] [#starting-and-
UCLA的stopping theory 课程讲义
instead spot the leak and solve it fast with Node.js by monitoring and stopping it before it becomes an issue. This book will provide you with the skills you need to analyze the performance of your ...
在“Starting and Stopping SAP HANA Systems”部分,管理员可以学习如何启动和停止SAP HANA系统以及数据库服务,如何在系统停止和启动过程中进行监控。这对于确保系统的稳定性以及在必要时进行维护至关重要。系统...