How to disable RabbitMQ default tcp listening port - 5672

前端 未结 3 1691
既然无缘
既然无缘 2021-02-12 13:11

I have configured the RabbitMQ rabbitmq.config file with new port number i.e. 5671 with SSL.

Now I want to disable the default port i.e. 5672.

3条回答
  •  耶瑟儿~
    2021-02-12 13:36

    Here's how to do it with the new configuration file format introduced in RabbitMQ 3.7:

    1. Set up the SSL listener in rabbitmq.conf:

      listeners.ssl.1 = 5671
      ssl_options.cacertfile = /path/to/testca/cacert.pem
      ssl_options.certfile = /path/to/server/cert.pem
      ssl_options.keyfile = /path/to/server/key.pem
      ssl_options.verify = verify_peer
      ssl_options.fail_if_no_peer_cert = false
      
    2. Disable the non-SSL listener in advanced.config:

      [
       {rabbit,
        [{tcp_listeners, []}
        ]}
      ].
      

提交回复
热议问题