ubuntu14.04 rabbitmq安装、nginx部署及centos安装

时间:2022-08-23 11:43:04

1: ubuntu安装rabbitmq

echo 'deb http://www.rabbitmq.com/debian/ testing main' | sudo tee /etc/apt/sources.list.d/rabbitmq.list

wget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo apt-key add -

sudo apt-get update

sudo apt-get install rabbitmq-server

以下命令全部需要再root用户下

2: 启动RabbitMQ管理插件,用于web界面管理

rabbitmq-plugins enable rabbitmq_management

service rabbitmq-server restart

3: 测试安装完成的RabbitMQ

rabbitmqctl status

4:常用命令列举

4.1 应用管理

rabbitmqctl status //显示RabbitMQ中间件的所有信息

rabbitmqctl stop //停止RabbitMQ应用,关闭节点

rabbitmqctl stop_app //停止RabbitMQ应用

rabbitmqctl start_app //启动RabbitMQ应用

rabbitmqctl restart //重置RabbitMQ节点

rabbitmqctl force_restart //强制重置RabbitMQ节点

转载地址:https://blog.csdn.net/tianjiewang/article/details/58383062

5 nginx部署

server {

listen 80;

index index.html index.htm;

# Make site accessible from http://localhost/

server_name rabbitmq.tlwlmy.com;

location / {

# First attempt to serve request as file, then

# as directory, then fall back to displaying a 404.

# try_files $uri $uri/ =404;

# Uncomment to enable naxsi on this location

# include /etc/nginx/naxsi.rules

proxy_pass http://127.0.0.1:15672;

}}

centos部署

http://blog.csdn.net/sharetop/article/details/49716897