Message Queue ~ RabbitMQ.
Article Directory
why~RabbitMQ?
common.
-
RabbitMQ
-
ActiveMQ
Apache produced. Small throughput. Choice from API, the cluster architecture approach.
-
RocketMQ
-
kafka
One of the top-level Apache project. Big Data. Data consistency is not good.
installation.
RabbitMQ based AMQP
protocol, erlang
language development.
-
Official website: https: //www.rabbitmq.com/
-
erlang
Use YUM to install.
https://github.com/rabbitmq/erlang-rpm
YUM configuration source.
[root@localhost ~]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]# vim rabbitmq-erlang.repo
To use Erlang 22.x on CentOS 7:
# In /etc/yum.repos.d/rabbitmq_erlang.repo
[rabbitmq_erlang]
name=rabbitmq_erlang
baseurl=https://packagecloud.io/rabbitmq/erlang/el/7/$basearch
repo_gpgcheck=1
gpgcheck=1
enabled=1
# PackageCloud's repository key and RabbitMQ package signing key
gpgkey=https://packagecloud.io/rabbitmq/erlang/gpgkey
https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
metadata_expire=300
[rabbitmq_erlang-source]
name=rabbitmq_erlang-source
baseurl=https://packagecloud.io/rabbitmq/erlang/el/7/SRPMS
repo_gpgcheck=1
gpgcheck=0
enabled=1
# PackageCloud's repository key and RabbitMQ package signing key
gpgkey=https://packagecloud.io/rabbitmq/erlang/gpgkey
https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
metadata_expire=300
yum install erlang
[root@localhost tools_my]# rpm -ivh rabbitmq-server-3.7.18-1.el7.noarch.rpm
error: Failed dependencies:
socat is needed by rabbitmq-server-3.7.18-1.el7.noarch
yum install socat
[root@localhost tools_my]# rpm -ivh rabbitmq-server-3.7.18-1.el7.noarch.rpm
Configuration.
[root@localhost ~]# ls /etc/rabbitmq/
[root@localhost ~]#
[root@localhost ~]# find / -name rabbitmq.config.example
/usr/share/doc/rabbitmq-server-3.7.18/rabbitmq.config.example
[root@localhost ~]# cp /usr/share/doc/rabbitmq-server-3.7.18/rabbitmq.config.example /etc/rabbitmq/rabbitmq.config
The annotation release. (Comma should be removed).
55 %% The default "guest" user is only permitted to access the server
56 %% via a loopback interface (e.g. localhost).
57 %% {loopback_users, [<<"guest">>]},
58 %%
59 %% Uncomment the following line if you want to allow access to the
60 %% guest user from anywhere on the network.
61 %% {loopback_users, []},
{loopback_users, []}