yum -y install make gcc* kernel-devel m4 ncurses-devel openssl-devel
wget http://erlang.org/download/otp_src_19.3.tar.gz
tar zxvf otp_src_19.3.tar.gz
cd otp_src_19.3
./configure --prefix=/usr/local/erlang
make && make install
vim /etc/profile
export PATH=$PATH:/opt/erlang/bin
source /etc/profile
erl
wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.1/rabbitmq-server-generic-unix-3.6.1.tar.xz
xz -d rabbitmq-server-generic-unix-3.6.1.tar.xz
tar -xvf rabbitmq-server-generic-unix-3.6.1.tar
mv rabbitmq_server-3.6.1/ /usr/local/
vim /etc/profile
export PATH=$PATH:/usr/local/rabbitmq_server-3.6.1/sbin
source /etc/profile
./rabbitmq-server -detached
./rabbitmqctl status
./rabbitmqctl stop
mkdir /etc/rabbitmq
./rabbitmq-plugins enable rabbitmq_management
rabbitmqctl add_user xxx xxx
rabbitmqctl set_permissions -p "/" xxx ".*" ".*" ".*"
rabbitmqctl set_user_tags xxx administrator
1. 用户管理
用户管理包括增加用户,删除用户,查看用户列表,修改用户密码。
相应的命令
(1) 新增一个用户
rabbitmqctl add_user Username Password
(2) 删除一个用户
rabbitmqctl delete_user Username
(3) 修改用户的密码
rabbitmqctl change_password Username Newpassword
(4) 查看当前用户列表
rabbitmqctl list_users
(1) 设置用户权限
rabbitmqctl set_permissions -p VHostPath User ConfP WriteP ReadP
(2) 查看(指定hostpath)所有用户的权限信息
rabbitmqctl list_permissions [-p VHostPath]
(3) 查看指定用户的权限信息
rabbitmqctl list_user_permissions User
(4) 清除用户的权限信息
rabbitmqctl clear_permissions [-p VHostPath] User
运维QQ交流群:171586999
网友评论