标签:message tag 图片 操作 download 进程 插件 pass use
wget https://bintray.com/rabbitmq-erlang/rpm/download_file?file_path=erlang%2F21%2Fel%2F6%2Fx86_64%2Ferlang-21.3.8.14-1.el6.x86_64.rpm
rpm -ivh download_file\?file_path\=erlang%2F21%2Fel%2F6%2Fx86_64%2Ferlang-21.3.8.14-1.el6.x86_64.rpm
wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.8.3/rabbitmq-server-3.8.3-1.el7.noarch.rpm
rpm -ivh rabbitmq-server-3.8.3-1.el7.noarch.rpm
由于初始用户guest不能进行远程登陆,所以要新建一个管理员账号。
账号密码:admin/admin
rabbitmqctl add_user admin admin //添加用户,后面两个参数分别是用户名和密码 rabbitmqctl set_user_tags admin administrator //修改用户角色,将用户设为管理员 rabbitmqctl set_permissions -p / admin ‘.*‘ ‘.*‘ ‘.*‘ //添加权限
用户角色说明
用户相关操作命令
启动rabbitmq可视化界面插件
rabbitmq-plugins enable rabbitmq_management
启动rabbitmq延时队列插件
下载rabbitmq延时队列插件(.ez文件):https://github.com/rabbitmq/rabbitmq-delayed-message-exchange/releases/tag/v3.8.0
将插件文件放到/usr/lib/rabbitmq/lib/rabbitmq_server-3.8.3/plugins中
执行
rabbitmq-plugins enable rabbitmq_delayed_message_exchange
查看rabbitmq进程,然后kill掉
ps -ef |grep rabbit
卸载rabbitmq
yum list|grep rabbitmq
yum -y remove rabbitmq-server.noarch
查看erlang进程,然后kill掉
yum list | grep erlang
卸载erlang
yum -y remove erlang.*
删除相关文件
rm -rf /usr/lib64/erlang rm -rf /var/lib/rabbitmq rm -rf /usr/lib/rabbitmq/lib/rabbitmq_server-你的版本号/ rm -rf /etc/rabbitmq/ rm -rf /var/log/rabbitmq
CenterOS - CenterOS下安装RabbitMQ
标签:message tag 图片 操作 download 进程 插件 pass use
原文地址:https://www.cnblogs.com/helios-fz/p/12623315.html