Environment configuration
- Ubuntu Server 18.04
- RabbitMQ 3.6.10
Before installation
We use Apt-get for RABBITMQ installation, before installation, it is strongly recommended that you switch apt source to domestic, greatly increase the speed of download and installation, click to view: "Ubuntu Apt-get and pip domestic source replacement"
Installing Rabbitmq-server
- sudo apt-get update
- sudo apt-get install Rabbitmq-server
Service Common Commands
- Start Rabbit Services: Service rabbitmq-server start
- Stop Rabbit Services: Service Rabbitmq-server stop
- Background boot: rabbitmq-server-detached
- Operating Status: Rabbitmqctl status
User Management
- View all users: Rabbitmqctl list_users
- Add User: Rabbitmqctl add_user username password
- Delete User: Rabbitmqctl delete_user username
- Change Password: rabbitmqctl change_password username NewPassword
Open Rabbit Web Console
- Go to Rabbit installation directory: CD/USR/LIB/RABBITMQ
- To view installed plugins: Rabbitmq-plugins list
- Open the web version of the console: Rabbitmq-plugins enable Rabbitmq_management
- Restart RABBITMQ Service
- Enter Web page access address: http://localhost:15672/Use default account: Guest/guest Login
Preview Map:
Through the Web console, we can manage users, view connections, view channels, manage and view rabbit node information, log information.
Use instance-Add user set Super Permissions
- Rabbitmqctl add_user test test
- Rabbitmqctl set_user_tags Test Administrator
- Rabbitmqctl set_permissions-p/test ". " "." ". *"
RABBITMQ the environment on Ubuntu