参考
- https://yq.aliyun.com/ziliao/6172
- http://www.linuxidc.com/Linux/2016-03/129557.htm
- RabbitMQ: http://blog.csdn.net/zhang355/article/details/51320972
- http://www.jianshu.com/p/ce725e41edab
安装
yum install gcc glibc-devel make ncurses-devel openssl-devel xmlto
yum install gcc gcc-c++ glibc-devel make ncurses-devel openssl-devel autoconf java-1.8.0-openjdk-devel git
wget http://erlang.org/download/otp_src_20.0.tar.gz
tar -zxvf otp_src_20.0.tar.gz
cd otp_src_20.0
./otp_build autoconf
./configure && make && sudo make install
RabbitMQ
启动
rabbitmq-server start
关闭
rabbitmq-server stop
查看所有用户
rabbitmqctl list_users
查看默认guest用户的权限
rabbitmqctl list_user_permissions guest
删除用户
由于RabbitMQ默认的账号用户名和密码都是guest。为了安全起见, 先删掉默认用户
rabbitmqctl delete_user guest
添加用户
rabbitmqctl add_user admin adminPass
设置用户tag
rabbitmqctl set_user_tags username administrator
赋予用户默认vhost的全部操作权限
rabbitmqctl set_permissions -p / username "." "." ".*"
查看用户的权限
rabbitmqctl list_user_permissions admin
开启WEB
rabbitmq-plugins enable rabbitmq_management