Answers:
以下步骤应有所帮助:
在数组中添加以下元素app/etc/env.php:
'queue' => [
    'amqp' => [
        'host' => 'localhost',
        'port' => '5672',
        'user' => 'guest',
        'password' => 'guest',
        'virtualhost' => '/',
        'ssl' => ''
    ]
]
\Magento\Amqp\Model\Topology::install。RabbitMQ管理插件是查看当前配置的好工具目前,RabbitMQ支持已在非常基本的级别上实现,并且将在最近的Magento版本中得到改进。目前最好的选择是,如果可能的话,重新安装Magento。
setup_module然后我的队列出现在RabbitMQ管理器中
                    它看起来现在可以在2.1.7+中内置(可能更早吗?)。但是,如果您仍然需要此功能,我对此进行了测试,它可以工作:
<?php
namespace MyNamespace\MyModule\Setup;
use Magento\Amqp\Model\Topology;
use Magento\Framework\Setup\InstallSchemaInterface;
use Magento\Framework\Setup\ModuleContextInterface;
use Magento\Framework\Setup\SchemaSetupInterface;
class InstallSchema implements InstallSchemaInterface
{
    /**
     * @var Topology
     */
    private $topology;
    /**
     * InstallData constructor.
     */
    public function __construct(Topology $topology)
    {
        $this->topology = $topology;
    }
    /**
     * Installs DB schema for a module
     *
     * @param SchemaSetupInterface   $setup
     * @param ModuleContextInterface $context
     *
     * @return void
     */
    public function install(SchemaSetupInterface $setup, ModuleContextInterface $context)
    {
        $setup->startSetup();
        $this->topology->install();
        $setup->endSetup();
    }
}setup:install可以使用更改所有命令setup:store-config:set。
--base-url但是如何使用它来设置devdocs.magento.com/guides/v2.0/install-gde/prereq/…上列出的任何选项?例如,如果我通过,则会--amqp-host收到错误消息,指出该选项不存在。