How to disable RabbitMQ default tcp listening port - 5672

前端 未结 3 1636
既然无缘
既然无缘 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:53

    To disable standart RabbitMQ 5672 port add {tcp_listeners, []} to your rabbitmq.conf:

    [
      {rabbit, [
         {tcp_listeners, []},
         {ssl_listeners, [5671]},
         {ssl_options, [{cacertfile,"/ay/app/xxx/softwares/rabbitmq_server-3.1.1/etc/ssl/cacert.pem"},
                        {certfile,"/ay/app/xxx/softwares/rabbitmq_server-3.1.1/etc/ssl/cert.pem"},
                        {keyfile,"/ay/app/xxx/softwares/rabbitmq_server-3.1.1/etc/ssl/key.pem"},
                        {verify,verify_peer},
                        {fail_if_no_peer_cert,false},
    
                       {ciphers,[{dhe_rsa,aes_256_cbc,sha},
     {dhe_dss,aes_256_cbc,sha},
     {rsa,aes_256_cbc,sha}]}
    
                        ]
    
        }
       ]}
    ].
    

    It works with RabbitMQ 3.1.5

提交回复
热议问题