Ubuntu 16.04 安装 RabbitMQ
#1 更新
$ sudo apt-get update
$ sudo apt-get upgrade
#2 安装Erlang
$ cd /tmp
$ wget http://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc
$ sudo apt-key add erlang_solutions.asc
$ sudo apt-get update
$ sudo apt-get install erlang
$ sudo apt-get install erlang-nox
#3 安装RabbitMQ
添加RabbitMQ仓库源:
$ sudo vim /etc/apt/sources.list
在文件中添加一行:
deb http://www.rabbitmq.com/debian/ testing main
添加密钥:
$ cd /tmp
$ wget https://www.rabbitmq.com/rabbitmq-signing-key-public.asc
$ sudo apt-key add rabbitmq-signing-key-public.asc
安装rabbitmq-server:
$ sudo apt-get update
$ sudo apt-get install rabbitmq-server
启动RabbitMQ服务:
$ sudo systemctl enable rabbitmq-server
$ sudo systemctl start rabbitmq-server
查看RabbitMQ服务状态:
$ sudo systemctl status rabbitmq-server
#4 RabbitMQ web管理接口
启用rabbitmq-management插件:
$ sudo rabbitmq-plugins enable rabbitmq_management
重启RabbitMQ:
$ sudo systemctl restart rabbitmq-server
使用浏览器访问 http://your_server_domain_or_IP:15672,使用默认的guest/guest用户登录: