安装RabbitMQ服务

安装RabbitMQ服务
普通安装
yum install rabbitmq-server

启动RabbitMQ服务
systemctl start rabbitmq-server

停止RabbitMQ服务
rabbitmqctl stop

安全和端口
netstat -tnlp

SELinux和类似机制或许会通过绑定端口的方式阻止RabbitMQ。当这种情况发生时,RabbitMQ会启动失败。请确认以下的端口是可以被打开的:
4369 (epmd), 25672 (Erlang distribution)
5672, 5671 (启用了 或者 未启用 TLS 的 AMQP 0-9-1)
15672 (如果管理插件被启用)
61613, 61614 (如果 STOMP 被启用)
1883, 8883 (如果 MQTT 被启用)

web监控工具(下载RabbitMQ时默认包含web监控工具)
rabbitmq-plugins enable rabbitmq_management

提示信息
The following plugins have been enabled:
mochiweb
webmachine
rabbitmq_web_dispatch
amqp_client
rabbitmq_management_agent
rabbitmq_management
Plugin configuration has changed. Restart RabbitMQ for changes to take effect.

重启RabbitMQ服务生效
rabbitmqctl stop
systemctl start rabbitmq-server

http://127.0.0.1:15672 默认账号密码 guest
通过docker安装
docker run -it –rm –name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3-management

php think product queue –marketplaceid=US,JP –limit=1000

php think product server –marketplaceid=US,JP –limit=1000

php think product worker –marketplaceid=US,JP –limit=1000 –type=1