The role of messaging middleware activemq mainly decoupled, asynchronous, clipping.
We explain in detail as follows activemq download, install and start.
1, activemq download
download link:
http://activemq.apache.org/components/classic/download/
2, the installation package uploaded to the system linux / opt directory and extract the
cd / opt into / opt directory
rz -y open upload window
Upload window interface shown below:
3, a new directory in the root directory myActivemq
cd / into the root directory
Create a directory mkdir myActivemq
4, the compressed copied to their new directory and decompress
cp /opt/apache-activemq-5.15.10-bin.tar.gz / myActivemq archive copy
cd /myActivemq/
tar -zxvf apache-activemq-5.15.10-bin.tar.gz decompressor
The decompressed directory contents below:
Unzip into the directory:
cd apache-activemq-5.15.10
To see what there is inside:
ls
among them:
lib: storage jar package variety, such as the need for persistent connections mysql database, need to put mysql driver jar package
bin: to store a variety of programs
5, ordinary start activemq program
cd bin directory into the bin
ls view the directory structure, as shown below:
./activemq start start activemq
6, to see whether a successful start activemq
Three kinds of View (activemq default service port 61616)
ps -ef | grep activemq | grep -v grep query by name
lsof -i: 61616 depending on the port inquiry
netstat -anp | grep 61616 according to the port inquiry
Described above activemq installation and successful start
7, turn off services and restart the service command
./activemq stop close activemq Service
./activemq restart to restart the service
8, with a running log of the start-up mode
这种启动方式就是activemq的每一步操作都会记录日志
./activemq start > /myActivemq/activemq.log
发现启动的相关信息也不在控制台打印,而是存储在日志文件中了
9、访问activemq的web控制台
访问地址如下:
http://192.168.225.132:8161/admin
默认用户名密码:admin/admin
登录后页面如下:
以上步骤就完成了activemq的下载、安装与启动,还是很简单的,只要敢于动手实践就可以的。
若有理解不到之处,望指正。