1.Run the rpm -qa|grep rabbitmq command to check whether RabbitMQ exists on this server.

[[email protected] ~]# rpm -qa|grep rabbitmq

2.If it exists, complete the following steps to uninstall it:

1)Run the cd /usr/lib/netbrain/installer/rabbitmq command to navigate to the rabbitmq directory.

2)Run the ./uninstall.sh command under the rabbitmq directory.

3)Specify whether to remove all RabbitMQ data. To remove data, type y or yes., otherwise, type n or no.

[[email protected] ~]# cd /usr/lib/netbrain/installer/rabbitmq
[[email protected] rabbitmq]# ./uninstall.sh
INFO: 2021-09-10 14-34-50.387: Setting aucpath to /usr/share/auclient
INFO: 2021-09-10 14-34-50.393: aucpath is /usr/share/auclient
INFO: 2021-09-10 14-34-50.399: No AutoUpdate patch is detected, exiting uninstall_au_patch...
INFO: 2021-09-10 14-34-50.529: Creating uninstallation log file SUCCEEDED
INFO: 2021-09-10 14-34-50.574: Preprocessing SUCCEEDED
INFO: 2021-09-10 14-34-50.578: Starting to uninstall RabbitMQ
WARNING: Do you want to remove the log/data/config files after uninstalling the RabbitMQ component?
Input [ yes | y ] if you want to remove the log files or [ no | n ] otherwise]: no
INFO: 2021-09-10 14-35-16.647: Removed RabbitMQ release info file
INFO: 2021-09-10 14-35-16.658: Removed RabbitMQ uninstall path /usr/lib/netbrain/installer/rabbitmq
INFO: 2021-09-10 14-35-16.664: RabbitMQ has been uninstalled successfully.