activemq-artemis/docs/quickstart-guide/zh/running.xml

69 lines
4.2 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8"?>
<!-- ============================================================================= -->
<!-- Copyright © 2009 Red Hat, Inc. and others. -->
<!-- -->
<!-- The text of and illustrations in this document are licensed by Red Hat under -->
<!-- a Creative Commons AttributionShare Alike 3.0 Unported license ("CC-BY-SA"). -->
<!-- -->
<!-- An explanation of CC-BY-SA is available at -->
<!-- -->
<!-- http://creativecommons.org/licenses/by-sa/3.0/. -->
<!-- -->
<!-- In accordance with CC-BY-SA, if you distribute this document or an adaptation -->
<!-- of it, you must provide the URL for the original version. -->
<!-- -->
<!-- Red Hat, as the licensor of this document, waives the right to enforce, -->
<!-- and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent -->
<!-- permitted by applicable law. -->
<!-- ============================================================================= -->
<chapter id="running">
<title>Starting The Server</title>
<section id="running.standalone">
<title>单独HornetQ</title>
<para>要运行单独的HornetQ服务打开一个命令行窗口进入到HornetQ的<literal>bin</literal>
目录下,执行<literal>./run.sh</literal> (或者在Windows下 <literal
>run.bat</literal>)。你将看到如下的输出:</para>
<programlisting>
bin$ ./run.sh
15:05:54,108 INFO @main [HornetQBootstrapServer] Starting HornetQ server
...
15:06:02,566 INFO @main [HornetQServerImpl] HornetQ Server version
2.0.0.CR3 (yellowjacket, 111) started
</programlisting>
<para>这表明HornetQ已经启动并运行了。</para>
<para>默认情况下,不论是启动还是停止脚本都使用<literal>config/stand-alone/non-clustered</literal>
下的配置文件。要使用不同的配置目录,可运行<literal>./run.sh ../config/stand-alone/clustered</literal>
或者其它选定的目录。同样方法适用于停止脚本。</para>
</section>
<section id="running.jboss.as5">
<title>HornetQ在JBoss AS 5.x中运行</title>
<para>要在JBoss AS 5运行HornetQ你需要创建<link
linkend="installation.jboss.as5">安装有HornetQ的AS 5的配置</link>。然后用这个配置启动AS 5。
例如,要运行一个带有<emphasis>非集群</emphasis>的HornetQ服务的AS 5进入<literal
>$JBOSS_HOME/bin</literal>目录,然后键入:</para>
<programlisting>
bin$ ./run.sh -c default-with-hornetq
15:18:35,460 INFO [ServerImpl] Starting JBoss (Microcontainer)...
15:18:35,462 INFO [ServerImpl] Release ID: JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=
JBoss_5_1_0_GA date=200905221053)
...
15:19:30,305 INFO [HornetQServerImpl] HornetQ Server version
2.0.0.CR3 (yellowjacket, 111) started
...
15:19:43,601 INFO [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=
JBoss_5_1_0_GA date=200905221053)]Started in 1m:14s:556ms
</programlisting>
</section>
<section id="running.jboss.as4">
<title>HornetQ在JBoss AS 4中运行</title>
<para>首先按照与JBoss AS 5相同的步骤创建<link linkend="installation.jboss.as4">安装有HornetQ的AS 4配置
</link>然后以相同的方式启动AS。</para>
</section>
<section id="running.jboss.as6">
<title>HornetQ在JBoss AS 6.0中运行</title>
<para>从JBoss AS 6.0 M3开始HornetQ已经是默认的内建JMS提供者。所以无需安装即可运行。</para>
</section>
</chapter>