Pre-Installation Requirements
Hardware:
- 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.
Operating Systems:
- Windows: Windows XP SP2, Windows 2000, Windows Vista, Windows 7.
- Unix: Ubuntu Linux, Powerdog Linux, MacOS, AIX, HP-UX, Solaris, or any Unix platform that supports Java.
Environment:
- Java Developer Kit (JDK) 1.4.x or greater for deployment and 1.5.x (Java 5) for compiling/building. As of AMQ 5.5.0 you need JDK 1.6.0 to build.
- The JAVA_HOME environment variable must be set to the directory where the JDK is installed, e.g., c:\Program Files\jsdk.1.4.2-09.
- 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 Binary Installation
This procedure explains how to download and install the binary distribution on a Windows system.
- From a browser, navigate to activemq.apache.org/.
- Click the Download link in the navigation pane (the left pane).
- Click the ActiveMQ 4.x Release link under the "Latest Releases" section. This brings up a new page.
- 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: activemq-x.x.x.zip. - Extract the files from the ZIP file into a directory of your choice.
- Proceed to the Starting ActiveMQ section of this document.
- Following start-up, go to the Testing the Installation section of this document.
Starting ActiveMQ
From a console window, change to the installation directory and run ActiveMQ:
cd [activemq_install_dir]
|
where activemq_install_dir is the directory in which ActiveMQ was installed, e.g., c:\Program Files\ActiveMQ-4.x.
Then type:
bin\activemq
|
NOTE: Working directories get created relative to the current directory. To create working directories in the proper place, ActiveMQ must be launched from its home/installation directory.
如果在启动过程中报错,通常是端口被占用,查看安装目录下面的/conf/activemq.xml 配置文件,修改相应端口。
在console 窗口查看端口占用命令: find -an|find "61617"