ActiveMQ 安装及配置文档
丁靖
2008-05-09
ActiveMQ 安装
安装须知
硬件要求:
33 MB of free disk space for the ActiveMQ 4.x binary distribution.
200 MB of free disk space for the ActiveMQ 4.x source or developer's distributions.
操作系统:
Windows: Windows XP SP2, Windows 2000.
Unix: Ubuntu Linux, Powerdog Linux, MacOS, AIX, HP-UX, Solaris, or any Unix
platform that supports Java.
所需环境:
必须在 1.4 或以上版本 JDK 下运行,如果需要编译则要安装 1.5 以上的 JDK
设置 JAVA_HOME 环境变量,其值为 JDK 安装所在目录
Maven 1.0.2 or greater (required when installing source or developer's releases).
JARs that will be used must be added to the classpath.
在 Windows 上安装
Windows 二进制版本安装
1. From a browser, navigate to activemq.apache.org/ .
2. Click the Download link in the navigation pane (the left pane).
3. Click the ActiveMQ 4.x Release link under the "Latest Releases" section. This brings up a
new page.
4. Under the Download Here section, select the desired distribution (you may have to scroll
down to see the "Download Here" section).
For a binary distribution, the filename will be similar to: !".
5. Extract the files from the ZIP file into a directory of your choice.
6. Proceed to the Starting ActiveMQ section of this document.
7. Following start-up, go to the Testing the Installation section of this document.
Windows 源代码版本安装
NOTE:#$%&&#
$' (
1. From a browser, navigate to activemq.apache.org/ .
2. Click the Download link in the navigation pane (the left pane).
3. Click the ActiveMQ 4.x Release link under the "Latest Releases" section. This brings up
another page.
4. Under the Download Here section, select the desired distribution (if necessary, scroll
down to see the "Download Here" section).
For a source distribution, the filename will be similar to: !!".
5. Extract ActiveMQ from the ZIP file into a directory of your choice.
6. Build ActiveMQ using Maven 2.0.4 or greater and Java 1.5.
)
* ++,
* ++,
-&)
* ++,
!./0
1. If you prefer to use an IDE, then you can auto-generate the IDE's project file using maven
plugins:
)
)
1-.23
2. Start ActiveMQ from the target directory, for example:
4 * ++,55
% " !!6378"
' !!6378
5
NOTE:/
/
&(
6. Proceed to the Testing the Installation section.
Warning
-%
9
-&
&
:&
&((((
在 Unix 上安装
Unix 二进制版本安装
;
NOTE:
1. 下载 gzip 安装包到 Unix 机器上, 可以用浏览器或其它工具,如., wget, scp, ftp, etc.
for example:
<)(( ((:(!
!%$=!"
2. 解压安装包. For example:
<" !"
3. 确保 bin 子目录下的可执行文件具体可执行权限.如果没有可用下面方法修改权限.
For example:
<* ++,(
<>''
4. 具体启动 ActiveMQ 方法参考本文章的下面章节.
Unix 源代码版本安装
;;
3;?
-
NOTE:#$%&&#
$' (
1. From a browser, navigate to activemq.apache.org/ .
2. Click the Download link in the navigation pane (the left pane).
3. Click the ActiveMQ 4.x Release link under the "Latest Releases" section. This brings up a
new page.
4. Under the Download Here section, select the desired distribution (if necessary, scroll
down to see the "Download Here" section).
For a source distribution, the filename will be similar to: !!
".
5. Extract the files from the ZIP file into a directory of your choice. For example:
" !"
6. Build ActiveMQ using Maven 2.0.4 or greater and Java 5:
The preferred method of building ActiveMQ is the following:
> * ++,