official website download address: http://www.rabbitmq.com/download.html
quote
Comparison between RabbitMq, ActiveMq, ZeroMq, kafka, data summary:
http://blog.csdn.net/linsongbin1/article/details/47781187
https://my.oschina.net/u/236698/blog/501834
http://blog.csdn.net/linsongbin1/article/details/47781187
https://my.oschina.net/u/236698/blog/501834
1), deb package installation (Ubuntu system), download rabbitmq-server_2.8.1-1_all.deb, download address: http://www.rabbitmq.com/install-debian.html
2), apt-get install
a, add The following address goes to /etc/apt/sources.list
deb http://www.rabbitmq.com/debian/ testing main
b. Add the public key: Enter in the command line window:
$ wget http://www.rabbitmq.com /rabbitmq-signing-key-public.asc sudo apt-key add
$ rabbitmq-signing-key-public.asc
c, $ sudo apt-get update
d, $ sudo apt-get install rabbitmq-server
During the installation process, you need Using erlang, the apt-get method can automatically install dependent packages. If there is no requirement for the version, it is recommended to choose this method.
2. Erlang installation
official website download address: http://www.erlang.org/downloads
The hipe of erlang is equivalent to jit. According to the language evaluation, hipe support will be faster in pure erlang operation. 2-3 times, this performance improvement is quite considerable for computationally intensive applications
quote
1) Compile and install:
tar zxvf /home/sheungxin/otp_src.tar.gz
cd /home/sheungxin/otp_src
./configure
make && make install
erlang has many dependent packages, you need to install the dependent packages first, otherwise the installation cannot be successful. The libraries are as follows:
sudo apt-get install build-essential
sudo apt-get install libncurses5-dev
sudo apt-get install libssl-dev
sudo apt-get install m4
sudo apt-get install unixodbc unixodbc-dev
sudo apt-get install freeglut3-dev libwxgtk2.8-dev
sudo apt-get install xsltproc
sudo apt-get install fop
sudo apt-get install tk8.5
2), apt-get installation, execute the command: sudo apt-get install erlang
This solution is convenient, the disadvantage is that it cannot be Specify the installation version, the version may be lower
3), verify whether the installation is successful, enter erl
3 in the terminal, start some common commands
: sudo rabbitmq-server start
Close: sudo rabbitmq-server stop
View status: sudo rabbitmqctl status
4. There are three configuration files for server configuration
Rabbitmq, located in /etc/rabbitmq/,
enabled_plugins: Set the list of allowed plugins
rabbitmq.conf: Set the running parameters of
rabbitmq rabbitmq-env .conf: environment parameter configuration of rabbitmq
Reference : http://www.rabbitmq.com/configure.html
5. Problems encountered in the apt-get process
dpkg status database is locked by another process
The package manager is not properly closed, it needs to be Restart the computer or reopen the terminal and enter the following command:
sudo rm /var/lib/dpkg/lock
sudo dpkg --configure -a