如何删除Rabbitmq所以我可以重新安装

时间:2016-09-23 15:19:01

标签: rabbitmq

我遇到了麻烦,所以我进入了注册表并删除了rabbitmq的服务条目。现在当我尝试重新安装它时说它已经存在但它没有启动(因为我删除它)我可以做$(document).ready(function() { var textbox = $('.textbox'), captionLength = 0, caption = '', id = setTimeout(TypingEffect, 600); //call onces and set an Id so it can be cleared function TypingEffect() { // console.log('TypingEffect'); var tag = Math.floor((Math.random() * 8) + 1); if (tag == 1) { caption = "Example1" } if (tag == 2) { caption = "Example Example 2" } if (tag == 3) { caption = "Example3" } if (tag == 4) { caption = "Example Example 4" } if (tag == 5) { caption = "Example5" } if (tag == 6) { caption = "Example Example Example 6" } if (tag == 7) { caption = "Example7" } if (tag == 8) { caption = "Example Example 8" } clearTimeout(id); //clear first clearTimeout(TypingEffect, 600) call captionLength = 1; //start at 0 id = setInterval(type, 50); //call type every 50ms } function type() { // console.log('type', caption, caption.substring(0, captionLength++)); textbox.attr("placeholder", caption.substring(0, captionLength++)); //when finshed typing clear interval and call erase if (captionLength === caption.length + 1) { // console.log('end type'); clearInterval(id); //clear clearInterval(type, 50) id = setTimeout(ErasingEffect, 1000); //start erase call once after delay } } function ErasingEffect() { // console.log('ErasingEffect'); clearTimeout(id); //clear clearTimeout(ErasingEffect, 2000); call captionLength = caption.length; //start at end id = setInterval(erase, 50); //call erase every 50ms } function erase() { // console.log('erase'); textbox.attr("placeholder", caption.substring(0, captionLength--)); //when finshed erasing clear interval and call type if (captionLength < 0) { // console.log('end erase'); clearInterval(id); //clear clearInterval(erase, 50) id = setTimeout(TypingEffect, 1000); //start over } } }); 。如何完全删除所有痕迹并从头开始重新安装?我猜它存在于某个地方并且注册表项已经消失了,安装程序说它只是在我执行sc delete rabbitmq时更新它。我试过了 rabbitmq-service install但它说它不存在。

3 个答案:

答案 0 :(得分:6)

RabbitMQ将服务信息写入HKEY_LOCAL_MACHINE\SOFTWARE\Ericsson\Erlang\ErlSrv\1.1\RabbitMQ

要手动删除RabbitMQ,您必须:

  • 删除密钥HKEY_LOCAL_MACHINE\SOFTWARE\Ericsson\Erlang\ErlSrv\1.1\RabbitMQ
  • 删除目录C:\Users\%USERNAME%\AppData\Roaming\RabbitMQ
  • 删除安装文件夹。

下次我建议使用rabbitmq-service.bat命令安装和删除服务。

您必须以administrator

执行它

答案 1 :(得分:0)

你必须卸载Erlang和Rabbitmq。完成卸载后,尝试安装Rabbitmq,它会要求您再次安装Erlang。

答案 2 :(得分:0)

我建议如下:

sudo apt-get remove --auto-remove rabbitmq-server
sudo apt-get purge --auto-remove rabbitmq-server

它将卸载rabbitmq并清除所有数据(用户,虚拟主机。)