4.启动RabbitMQ Server
注册为系统服务
sudo chkconfig rabbitmq-server on
启动RabbitMQ Server
sudo /etc/init.d rabbitmq-server stop/start/etc
sudo service rabbitmq-server stop/start/etc
5.若启动失败检测端口是否被占用
4369 (epmd), 25672 (Erlang distribution)
5672, 5671 (AMQP 0-9-1 without and with TLS)
15672 (if management plugin is enabled)
61613, 61614 (if STOMP is enabled)
1883, 8883 (if MQTT is enabled)
参考:
http://www.rabbitmq.com/install-rpm.html
##################################################
RabbitMQ Server 配置
##################################################
1.通过环境变量进行配置
可直接在Shell中进行配置
或在rabbitmq-env.conf中配置
2.通过配置文件进行配置
sudo cp /usr/share/doc/rabbitmq-server-3.4.1/rabbitmq.config.example /etc/rabbitmq/rabbitmq.config
sudo vim /etc/rabbitmq/rabbitmq.config