Window installation
1: RabbitMQ installation
1.1: Install Erlang: http://www.erlang.org/
1.2:安装RabbitMQ:http://www.rabbitmq.com/download.html
1.3: Windows platform configuration reference: https://github.com/ServiceStack/rabbitmq-windows
1.4: RabbitMQ management plug-in activation and new user creation reference: http://www.thegeekstuff.com/2013/10/enable-rabbitmq-management-plugin/
1.5: .NET/C# RabbitMQ client download address: https://github.com/rabbitmq/rabbitmq-dotnet-client
2: Introduction to configuration
There are 2 ways to start rabbitmq
2.1. Start by application
rabbitmq-server -detached background start
Rabbitmq-server is started directly, and the application will stop if you close the window or use other commands when changing the window
Shut down: rabbitmqctl stop
2.2. Start as a service (after installation, you can see RabbtiMq in the service column of the task manager)
rabbitmq-service install installation service# Need to perform the installation in the sbin directory, otherwise the rabbitmq service cannot be recognized
rabbitmq-service start start service
Rabbitmq-service stop stop service
Rabbitmq-service enable to enable the service
Rabbitmq-service disable disables the service
rabbitmq-service help help
After rabbitmq-service install, the default service is enabled. If the service is set to disable at this time, rabbitmq-service start will report an error.
When rabbitmq-service start starts the service normally, using disable has no effect
Shut down: rabbitmqctl stop
2.3, Rabbitmq management plugin start
rabbitmq-plugins enable rabbitmq_management 启动
rabbitmq-plugins disable rabbitmq_management 关闭
2.4, Rabbitmq node management method
Rabbitmqctl
List queue status rabbitmqctl list_queues name messages_ready messages_unacknowledge (mainly used to check unacknowledged queue troubleshooting issues)
Test environment: Window Server 2008
1: Unable to start
CMD returns an error:-Garbled
Solution:
This problem is generally caused by the system environment variables are not configured properly.
Check the following two environment variable configurations:
ERLANG_HOME
RABBITMQ_BASE
re-execute the installation command:
rabbitmq-service.bat remove
rabbitmq-service.bat install
rabbitmq-service.bat start.
ok, success.
Ubunt installation
method 2: Use APT to install
1. Add the following address to /etc/apt/sources.list
deb http://www.rabbitmq.com/debian/ testing main
2: public key
$ wget http://www.rabbitmq.com/rabbitmq-signing-key-public.asc sudo apt-key add
Update package
sudo apt-get update
Install Rabbitmq-server
sudo apt-get install rabbitmq-server
In the process of installing rabbitmq, erlang is needed. When installing using the above method, these necessary packages can be installed automatically
启动: sudo rabbitmq-server start
关闭: sudo rabbitmq-server stop