待完善。 一:安装erlang
代码语言:javascript复制rpm -Uvh http://download.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-8.noarch.rpm
yum install erlang
二:下载rpm
代码语言:javascript复制wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.6/rabbitmq-server-3.6.6-1.el7.noarch.rpm
也可以下载到本地,上传到linux
三:安装rabbitmq
代码语言:javascript复制yum install rabbitmq-server-3.6.6-1.el7.noarch.rpm
四:启动服务
代码语言:javascript复制service rabbitmq-server start
service rabbitmq-server status
五:安装命令维护插件
代码语言:javascript复制rabbitmq-plugins enable rabbitmq_management
六:设置配置文件,并开启用户远程访问
代码语言:javascript复制vi /etc/rabbitmq/rabbitmq.config
#cd /etc/rabbitmq
#cp /usr/share/doc/rabbitmq-server-3.6.6/rabbitmq.config.example /etc/rabbitmq/
#mv rabbitmq.config.example rabbitmq.config
vi /etc/rabbitmq/rabbitmq.config
代码语言:javascript复制 %%
%% Security / AAA
%% ==============
%%
%% The default "guest" user is only permitted to access the server
%% via a loopback interface (e.g. localhost).
%% {loopback_users, []}
%%
%% Uncomment the following line if you want to allow access to the
%% guest user from anywhere on the network.
{loopback_users, []}
保存配置后,重启服务