贵州企业网站开发公司,扬中潘杰简历,wordpress火车头发布模板,cms建站步骤目录 一、下载并安装Erlang1、下载Erlang2、安装Erlang3、配置环境变量4、验证erlang是否安装成功 二、下载并安装RabbitMQ1、下载RabbitMQ2、安装RabbitMQ3、配置环境变量4、验证RabbitMQ是否安装成功5、启动RabbitMQ服务#xff08;安装后服务默认自启动#xff09; 三、安… 目录 一、下载并安装Erlang1、下载Erlang2、安装Erlang3、配置环境变量4、验证erlang是否安装成功 二、下载并安装RabbitMQ1、下载RabbitMQ2、安装RabbitMQ3、配置环境变量4、验证RabbitMQ是否安装成功5、启动RabbitMQ服务安装后服务默认自启动 三、安装过程中遇到的问题1、出现 Authentication failed (rejected by the remote node), please check the Erlang cookie2、报错Status of node rabbit … ** (ArgumentError) argument error (stdlib)3、主机名原来为中文改为英文后执行rabbitmqctl status报错 * connected to epmd (port 4369) on DESKTOP-AJ0N…suggestion: start the node4、报错start_error, failed_to_start_child, 原因rabbitmq和erlang版本不一致5、Distribution failed: {{:shutdown, {:failed_to_start_child, :net_kernel, {:EXIT, :nodistribution}}}, {:child, :undefined, :net_sup_dynamic, {:erl_distribution, :start_link, [[:rabbitmqcli67, :shortnames], false]}, :permanent, 1000, :supervisor, [:erl_distribution]}} 四、配置远程访问可选但推荐1、创建用户1、用户授权 五、其它1、RabbitMQ管理插件的一些命令 一、下载并安装Erlang
1、下载Erlang
官网下载地址https://www.erlang.org/downloads
这里如果嫌官网下载麻烦我这里提供了一个20.2的版本
链接https://pan.baidu.com/s/1nNYLXid259e-iuCIU3B9UA 提取码fw9t
2、安装Erlang
双击otp_win64_20.2.exe点击next 选择安装目录
3、配置环境变量
新建系统变量名为ERLANG_HOME 变量值为erlang安装地址 双击系统变量path点击“新建”将%ERLANG_HOME%\bin加入到path中。 4、验证erlang是否安装成功
winR键输入cmd再输入erl看到erlang版本号就说明erlang安装成功了。
二、下载并安装RabbitMQ
1、下载RabbitMQ
官网下载地址https://www.rabbitmq.com/news.html下载的RabbitMQ版本要和对应的Erlang版本对应 这里提供了一个对应的3.7.4的版本
链接https://pan.baidu.com/s/1nzj6_KCJM6UDMtEzvmic_A 提取码um7c
rabbitmq和erlang版本对应关系如下https://www.rabbitmq.com/which-erlang.html
2、安装RabbitMQ
双击下载后的.exe文件安装过程与erlang的安装过程相同。
安装RabbitMQ-Plugins 打开命令行cd输入RabbitMQ的sbin目录。 我的目录是
E:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.4\sbin然后输入以下命令进行安装
rabbitmq-plugins enable rabbitmq_management3、配置环境变量
新建一个系统变量变量名为RABBITMQ_SERVER变量值为RabbitMQ的安装目录例如C:\Program Files\RabbitMQ Server\rabbitmq_server-XX.X.X其中XX.X.X是RabbitMQ的版本号。 编辑系统变量Path添加%RABBITMQ_SERVER%\sbin作为新的路径。
4、验证RabbitMQ是否安装成功
输入以下命令
rabbitmqctl status如果出现以下的图说明安装是成功的并且说明现在RabbitMQ Server已经启动了,运行正常 打开浏览器地址栏输入mq访问地址即可看到管理界面的登陆页 默认用户名和密码都是 guest 最上侧的导航依次是概览、连接、信道、交换器、队列、用户管理
5、启动RabbitMQ服务安装后服务默认自启动
打开RabbitMQ的安装目录找到sbin文件夹。 双击rabbitmq-server.bat文件启动RabbitMQ服务。你也可以通过命令提示符使用rabbitmq-server start命令来启动服务。
三、安装过程中遇到的问题
1、出现 Authentication failed (rejected by the remote node), please check the Erlang cookie 解决办法
比较下面两个文件夹下的.erlang.cookie文件内容如果不一样将第2个内容修改为第1个的内容。再次执行命令rabbitmqctl status成功
C:\Windows\System32\config\systemprofile\.erlang.cookie
C:\User\{{电脑用户名}}\.erlang.cookie2、报错Status of node rabbit … ** (ArgumentError) argument error (stdlib)
检查rabbitmq 服务的日志db、log 等文件夹的路径是否含有中文检查本机的用户名是否为中文存在中文会出现下面的报错 这个本机用户名要是英文
3、主机名原来为中文改为英文后执行rabbitmqctl status报错 * connected to epmd (port 4369) on DESKTOP-AJ0N…suggestion: start the node 解决办法 执行以下命令重新安装rabbit-mq
rabbitmq-service remove
rabbitmq-service install
#如果上述命令不行,执行
rabbitmq-server start 4、报错start_error, failed_to_start_child, 原因rabbitmq和erlang版本不一致 5、Distribution failed: {{:shutdown, {:failed_to_start_child, :net_kernel, {:EXIT, :nodistribution}}}, {:child, :undefined, :net_sup_dynamic, {:erl_distribution, :start_link, [[:rabbitmqcli67, :shortnames], false]}, :permanent, 1000, :supervisor, [:erl_distribution]}}
检查rabbitmq 服务的日志db、log 等文件夹的路径是否含有中文检查本机的用户名是否为中文存在中文会出现下面的报错
四、配置远程访问可选但推荐
1、创建用户
由于guest这个用户,只能在本地访问,所以我们要新增一个用户admin选择超级管理员权限
1、用户授权
此时这个账户是没有权限的需要授权
五、其它
1、RabbitMQ管理插件的一些命令
rabbitmqctl 的常用命令
# 查看服务器的状态
rabbitmqctl status# 查看环境变量
rabbitmqctl environment# 停止rabbitmq的应用
rabbitmqctl stop_app# 启动rabbitmq的应用
rabbitmqctl start_app# 添加用户
rabbitmqctl add_user username password
rabbitmqctl add_user uplooking 123456# 列出所有的用户
rabbitmqctl list_users# 将用户设置为管理员用户
rabbitmqctl set_user_tags uplooking administrator# 查看虚拟主机
rabbitmqctl list_vhosts# 添加虚拟主机
rabbitmqctl add_vhost /uplooking
rabbitmqctl add_vhost /uplooking/ops
rabbitmqctl add_vhost /uplooking/java# 删除虚拟主机
rabbitmqctl delete_vhost /uplooking/java# 查看默认虚拟主机的权限
rabbitmqctl list_permissions# 设置用户的权限.* 表示分别对 组件的配置文件、读权限、写权限
rabbitmqctl set_permissions -p /uplooking uplooking .* .* .*# 查看虚拟主机的权限
rabbitmqctl list_permissions -p /uplooking# 组件查看
rabbitmqctl list_queues -p /uplooking
文章转载自: http://www.morning.yzsdp.cn.gov.cn.yzsdp.cn http://www.morning.hhrpy.cn.gov.cn.hhrpy.cn http://www.morning.hqqpy.cn.gov.cn.hqqpy.cn http://www.morning.cfpq.cn.gov.cn.cfpq.cn http://www.morning.mbnhr.cn.gov.cn.mbnhr.cn http://www.morning.ykmkz.cn.gov.cn.ykmkz.cn http://www.morning.fwgnq.cn.gov.cn.fwgnq.cn http://www.morning.rfzbm.cn.gov.cn.rfzbm.cn http://www.morning.tjqcfw.cn.gov.cn.tjqcfw.cn http://www.morning.wqbhx.cn.gov.cn.wqbhx.cn http://www.morning.nmnhs.cn.gov.cn.nmnhs.cn http://www.morning.ryrgx.cn.gov.cn.ryrgx.cn http://www.morning.dbddm.cn.gov.cn.dbddm.cn http://www.morning.sgpnz.cn.gov.cn.sgpnz.cn http://www.morning.gmdtk.cn.gov.cn.gmdtk.cn http://www.morning.hdrrk.cn.gov.cn.hdrrk.cn http://www.morning.gagapp.cn.gov.cn.gagapp.cn http://www.morning.xsqbx.cn.gov.cn.xsqbx.cn http://www.morning.wjfzp.cn.gov.cn.wjfzp.cn http://www.morning.vaqmq.cn.gov.cn.vaqmq.cn http://www.morning.rbkml.cn.gov.cn.rbkml.cn http://www.morning.srkwf.cn.gov.cn.srkwf.cn http://www.morning.bpmmq.cn.gov.cn.bpmmq.cn http://www.morning.qhkdt.cn.gov.cn.qhkdt.cn http://www.morning.vvbsxm.cn.gov.cn.vvbsxm.cn http://www.morning.slqzb.cn.gov.cn.slqzb.cn http://www.morning.qmtzq.cn.gov.cn.qmtzq.cn http://www.morning.ckhyj.cn.gov.cn.ckhyj.cn http://www.morning.plhhd.cn.gov.cn.plhhd.cn http://www.morning.bpmtg.cn.gov.cn.bpmtg.cn http://www.morning.spfq.cn.gov.cn.spfq.cn http://www.morning.rqmqr.cn.gov.cn.rqmqr.cn http://www.morning.bgpb.cn.gov.cn.bgpb.cn http://www.morning.srmdr.cn.gov.cn.srmdr.cn http://www.morning.wftrs.cn.gov.cn.wftrs.cn http://www.morning.xcyhy.cn.gov.cn.xcyhy.cn http://www.morning.xfxnq.cn.gov.cn.xfxnq.cn http://www.morning.kmrgl.cn.gov.cn.kmrgl.cn http://www.morning.gqwbl.cn.gov.cn.gqwbl.cn http://www.morning.dwwlg.cn.gov.cn.dwwlg.cn http://www.morning.qxnlc.cn.gov.cn.qxnlc.cn http://www.morning.stwxr.cn.gov.cn.stwxr.cn http://www.morning.qrpdk.cn.gov.cn.qrpdk.cn http://www.morning.bflwj.cn.gov.cn.bflwj.cn http://www.morning.gxtfk.cn.gov.cn.gxtfk.cn http://www.morning.dpzcc.cn.gov.cn.dpzcc.cn http://www.morning.yhyqg.cn.gov.cn.yhyqg.cn http://www.morning.yhwmg.cn.gov.cn.yhwmg.cn http://www.morning.hmjasw.com.gov.cn.hmjasw.com http://www.morning.yhplt.cn.gov.cn.yhplt.cn http://www.morning.tkcz.cn.gov.cn.tkcz.cn http://www.morning.jopebe.cn.gov.cn.jopebe.cn http://www.morning.xhhzn.cn.gov.cn.xhhzn.cn http://www.morning.tstwx.cn.gov.cn.tstwx.cn http://www.morning.fsjcn.cn.gov.cn.fsjcn.cn http://www.morning.rlhjg.cn.gov.cn.rlhjg.cn http://www.morning.jzmqk.cn.gov.cn.jzmqk.cn http://www.morning.lmdkn.cn.gov.cn.lmdkn.cn http://www.morning.ygbq.cn.gov.cn.ygbq.cn http://www.morning.rgkd.cn.gov.cn.rgkd.cn http://www.morning.qhnmj.cn.gov.cn.qhnmj.cn http://www.morning.roymf.cn.gov.cn.roymf.cn http://www.morning.bpncd.cn.gov.cn.bpncd.cn http://www.morning.hxrfb.cn.gov.cn.hxrfb.cn http://www.morning.mmhaoma.com.gov.cn.mmhaoma.com http://www.morning.qnypp.cn.gov.cn.qnypp.cn http://www.morning.ldynr.cn.gov.cn.ldynr.cn http://www.morning.tkyxl.cn.gov.cn.tkyxl.cn http://www.morning.jrplk.cn.gov.cn.jrplk.cn http://www.morning.pfnlc.cn.gov.cn.pfnlc.cn http://www.morning.zlrsy.cn.gov.cn.zlrsy.cn http://www.morning.mxdhy.cn.gov.cn.mxdhy.cn http://www.morning.zlhbg.cn.gov.cn.zlhbg.cn http://www.morning.rdbj.cn.gov.cn.rdbj.cn http://www.morning.yrjym.cn.gov.cn.yrjym.cn http://www.morning.jwefry.cn.gov.cn.jwefry.cn http://www.morning.tpyrn.cn.gov.cn.tpyrn.cn http://www.morning.ffmx.cn.gov.cn.ffmx.cn http://www.morning.nsrtvu.com.gov.cn.nsrtvu.com http://www.morning.pjxlg.cn.gov.cn.pjxlg.cn