访问rabbitmq官网下载页面: https://www.rabbitmq.com/download.html
:
找到安装erlang: https://www.rabbitmq.com/install-rpm.html#install-from-esl-repository
:
即:https://www.erlang-solutions.com/resources/download.html
:
安装:
wget https://packages.erlang-solutions.com/erlang/rpm/centos/7/x86_64/esl-erlang_22.0.7-1~centos~7_amd64.rpm
rpm -ivh esl-erlang_22.0.7-1~centos~7_amd64.rpm
error: Failed dependencies:
libGL.so.1()(64bit) is needed by esl-erlang-19.3-1.x86_64
libGLU.so.1()(64bit) is needed by esl-erlang-19.3-1.x86_64
libodbc.so.2()(64bit) is needed by esl-erlang-19.3-1.x86_64
libwx_baseu-2.8.so.0()(64bit) is needed by esl-erlang-19.3-1.x86_64
libwx_baseu-2.8.so.0(WXU_2.8)(64bit) is needed by esl-erlang-19.3-1.x86_64
libwx_baseu_xml-2.8.so.0()(64bit) is needed by esl-erlang-19.3-1.x86_64
libwx_gtk2u_adv-2.8.so.0()(64bit) is needed by esl-erlang-19.3-1.x86_64
libwx_gtk2u_adv-2.8.so.0(WXU_2.8)(64bit) is needed by esl-erlang-19.3-1.x86_64
libwx_gtk2u_aui-2.8.so.0()(64bit) is needed by esl-erlang-19.3-1.x86_64
libwx_gtk2u_aui-2.8.so.0(WXU_2.8)(64bit) is needed by esl-erlang-19.3-1.x86_64
libwx_gtk2u_aui-2.8.so.0(WXU_2.8.5)(64bit) is needed by esl-erlang-19.3-1.x86_64
libwx_gtk2u_core-2.8.so.0()(64bit) is needed by esl-erlang-19.3-1.x86_64
libwx_gtk2u_core-2.8.so.0(WXU_2.8)(64bit) is needed by esl-erlang-19.3-1.x86_64
libwx_gtk2u_core-2.8.so.0(WXU_2.8.10)(64bit) is needed by esl-erlang-19.3-1.x86_64
libwx_gtk2u_gl-2.8.so.0()(64bit) is needed by esl-erlang-19.3-1.x86_64
libwx_gtk2u_gl-2.8.so.0(WXU_2.8)(64bit) is needed by esl-erlang-19.3-1.x86_64
libwx_gtk2u_html-2.8.so.0()(64bit) is needed by esl-erlang-19.3-1.x86_64
libwx_gtk2u_html-2.8.so.0(WXU_2.8)(64bit) is needed by esl-erlang-19.3-1.x86_64
libwx_gtk2u_stc-2.8.so.0()(64bit) is needed by esl-erlang-19.3-1.x86_64
libwx_gtk2u_stc-2.8.so.0(WXU_2.8)(64bit) is needed by esl-erlang-19.3-1.x86_64
libwx_gtk2u_xrc-2.8.so.0()(64bit) is needed by esl-erlang-19.3-1.x86_64
libwx_gtk2u_xrc-2.8.so.0(WXU_2.8)(64bit) is needed by esl-erlang-19.3-1.x86_64
yum install epel-release
yum install unixODBC unixODBC-devel wxBase wxGTK SDL wxGTK-gl
https://www.rabbitmq.com/install-rpm.html#downloads
:
wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.7.17/rabbitmq-server-3.7.17-1.el7.noarch.rpm
rpm -ivh rabbitmq-server-3.7.17-1.el7.noarch.rpm
## 可能需要先安装!!
yum install socat
1.开机启动:
chkconfig rabbitmq-server on
2.查看启动状态:
rabbitmqctl status
3.启动,关闭,重启:
systemctl start rabbitmq-server.service
systemctl stop rabbitmq-server.service
systemctl restart rabbitmq-server.service
Job for rabbitmq-server.service failed because the control process exited with error code. See “systemctl status rabbitmq-server.service” and “journalctl -xe” for details.
journalctl -xe查看
unable to connect to epmd (port 4369) on wzy: address (cannot connect to host/port)
rabbitmq-plugins enable rabbitmq_management
访问: http://192.168.93.129:15672
,默认用户:guest/guest
,但登陆时显示User can only log in via localhost!!!
找到文件/usr/lib/rabbitmq/lib/rabbitmq_server-3.7.17/ebin/rabbit.app
:
将 {loopback_users, [<<"guest">>]},
改为{loopback_users, []},
然后重启服务即可:
systemctl restart rabbitmq-server.service
语法: set_permissions [-p ]
执行: rabbitmqctl set_permissions -p /mall mall “." ".” “.*”
完成对mall的授权,然后启动项目就正常了