how to delete queues using rabbitmq batch files - rabbitmq

I am using rabbitmq version 3.6.9. I don't see rabbitmqadmin in the sbin folder. Can anyone please tell me on where I can find this.
I enabled rabbitmq_management as below
rabbitmq-plugins enable rabbitmq_management

There is no separate binary for rabbitmqadmin on windows,
see the official docs:
Windows users will need to ensure Python is on their path, and invoke rabbitmqadmin as python.exe rabbitmqadmin.

Related

redis/debian: where can I find the configuration file

Quick question: where can I find my redis configuration file? I'm running debian 10. I've installed redis with the following command:
sudo apt-get install redis-server
I've found a config-file on the following location: /etc/redis/redis.conf, but changing this configuration file has no effect on redis, even if I restart my server.
When using the CONFIG SET/GET commands, I get other output. I want to change the bind address.
Thanks.
EDIT:
I'm finding out (with info server) that there is no config file loaded. When running the following command: redis-server /etc/redis/redis.conf, I get the fatal error that the config-file can't be opened. But I can open the file with nano?
I believe the issue is due to a missing filesystem permission, with the user running Redis (named as redis, by default) not allowed to read/write the file /etc/redis/redis.conf.
Installing redis-server via apt should also configure redis to run as a systemd service, along with the proper filesystem permissions, so restarting your Redis service with service redis restart should also reload the modified configuration file. If that doesn't work, just make sure the user you are running Redis under has the correct filesystem permissions as mentioned above.

Puppet Enterprise "puppet job run Unknown Puppet subcommand 'job'" although documentation indicates this is available

I have Puppet Enterprise 2018.1 installed. According to this documentation https://puppet.com/docs/pe/2018.1/running_puppet_on_demand_from_the_cli.html I'm wanting to use "Running Puppet with the orchestrator", however the command described command does not exist?
vagrant#pe:/$ sudo puppet job run
Error: Unknown Puppet subcommand 'job'
Although I was logged on to the master (PE) this does not have the client tools installed by default, so I needed to download (https://puppet.com/docs/pe/2017.3/installing_pe_client_tools.html) and install (my host is Ubuntu 16.04, so dpkg -i pe-client-tools_18.1.3-1xenial_amd64.deb).
The tools are not linked nor added to the path, and the documentation is misleading as to how to invoke, so not "puppet job" as in the documentation, instead (using show as an example)
/opt/puppetlabs/bin/puppet-job show

windows RabbitMQ doesnt have rabbitmqadmin in sbin folder

I am working on RabbitMQ in windows environment.Do we have rabbitmqadmin for windows as well?
i am not able to find rabbitmqadmin in sbin folder of rabbitmq.
please let me know .
You will not find rabbitmqadmin in sbin. You need to do following to get it working on windows
You need python installed on your windows machine.
Follow this link to download and install python : https://www.python.org/downloads/
Once installed, update system env variable path by adding python installation path to existing value.
Check the installation and path setting has correctly by using this command python. It should open command line editor
Browse to http://{host}:15672/cli/ to download rabbitmqadmin, save it without extension
Now open the command prompt, change your directory to rabbitmqadmin downloaded directory and execute below command:
python.exe rabbitmqadmin --help
If you see the helps are shown in response of above command then you are all set to perform various rabbitmqadmin operations!

How to remove Rabbitmq so I can reinstall

I was having trouble, so I went into the registry and removed the service entry for rabbitmq. Now when I try to reinstall it says it already exists but it doesn't start (since I removed it) and I can do a sc delete rabbitmq. How do I totally remove all traces of it and reinstall from scratch? I guess it exists somewhere and the registry entry is all that is gone and the install program says it us just updating it when I do the rabbitmq-service install. I tried
rabbitmq-service remove but it says it doesn't exist.
I would suggest as follows:
sudo apt-get remove --auto-remove rabbitmq-server
sudo apt-get purge --auto-remove rabbitmq-server
It will uninstall rabbitmq and purge all data (users, vhost..)
RabbitMQ writes the service information into HKEY_LOCAL_MACHINE\SOFTWARE\Ericsson\Erlang\ErlSrv\1.1\RabbitMQ
To remove RabbitMQ manually you have to:
remove the key HKEY_LOCAL_MACHINE\SOFTWARE\Ericsson\Erlang\ErlSrv\1.1\RabbitMQ
remove the directory C:\Users\%USERNAME%\AppData\Roaming\RabbitMQ
remove the installation-folder.
Next time I suggest to use the rabbitmq-service.bat command to install and remove the service.
you have to execute it as administrator
You have to uninstall the Erlang and Rabbitmq both. After you are done with the uninstall, then try to install the Rabbitmq and it will ask you to install Erlang again.

How to restart RabbitMQ service

I am getting a strange error while restarting the rabbitmq service and because of that I am unable to restart RabbitMQ service. I got this message from EventViewer and have tried to find solution by googling but no luck..please suggest.
RabbitMQ: Erlang machine voluntarily stopped. The service is not
restarted as OnFail is set to ignore.
Thanks
On a modern Linux you can restart it like any other service
sudo service rabbitmq-server restart
There is a specific control interface as well
sudo rabbitmqctl "report"
sudo rabbitmqctl "reset"
As per the documentation of RabbitMQ CLI docs you can do the following:
rabbitmqctl stop
rabbitmqctl start_app
Since none of the answers actually answer the question, in command prompt, type:
net stop rabbitmq
net start rabbitmq
If you reinstall RabbitMQ and have issues running it as a windows service, a workaround could be the following:
In cmd.exe, run from the rabbit sbin folder:
rabbitmq-service.bat remove
rabbitmq-service.bat install
net start rabbitmq
It worked for me on windows 7.
in Your installed server first run stop command
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.8\sbin>rabbitmqctl.bat stop
Then start command:
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.8\sbin>rabbitmqctl.bat start_app
Or via GUI windows service : right click and then click on restart :
in my case helped start by direct call
sudo /usr/lib/rabbitmq/bin/rabbitmq-server
If you are using a windows machine and RabitMQ is installed in the machine, then got to C:\Program Files\RabbitMQ Server\rabbitmq_server-\sbin>
and run the following command
rabbitmqctl stop_app
rabbitmqctl force_reset
rabbitmqctl start_app
And it will look like this
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.9.5\sbin>rabbitmqctl stop_app
Stopping rabbit application on node rabbit#DESKTOP-MQS...
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.9.5\sbin>rabbitmqctl force_reset
Forcefully resetting node rabbit#DESKTOP-MQS...
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.9.5\sbin>rabbitmqctl start_app
Starting node rabbit#DESKTOP-MQS...
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.9.5\sbin>
First go to C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.6\sbin then run command prompt as administrator and run rabbitmq-server restart
Make sure to go to the correct directory.