如何停止rabbitmq服务器 [英] how to stop rabbitmq servers
本文介绍了如何停止rabbitmq服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试启动一个节点应用程序,但我认为Rabbitmq会妨碍工作.
I am trying to start a node app and I think rabbitmq is getting in the way.
Similar to this thread: "node with name "rabbit" already running", but also "unable to connect to node 'rabbit'"
$ ps aux | grep erl
rabbitmq 1327 0.0 0.0 2376 300 ? S Dec13 0:00 /usr/lib/erlang/erts-5.8.5/bin/epmd -daemon
rabbitmq 1344 0.0 0.3 59560 14888 ? Sl Dec13 0:10 /usr/lib/erlang/erts-5.8.5/bin/beam.smp -W w -K true -A30 -P 1048576 -- -root /usr/lib/erlang -progname erl -- -home /var/lib/rabbitmq -- -noshell -noinput -sname rabbit@jasonshark -boot /var/lib/rabbitmq/mnesia/rabbit@jasonshark-plugins-expand/rabbit -kernel inet_default_connect_options [{nodelay,true}] -sasl errlog_type error -sasl sasl_error_logger false -rabbit error_logger {file,"/var/log/rabbitmq/rabbit@jasonshark.log"} -rabbit sasl_error_logger {file,"/var/log/rabbitmq/rabbit@jasonshark-sasl.log"} -os_mon start_cpu_sup true -os_mon start_disksup false -os_mon start_memsup false -mnesia dir "/var/lib/rabbitmq/mnesia/rabbit@jasonshark"
rabbitmq 1700 0.0 0.0 2136 284 ? Ss Dec13 0:00 /usr/lib/erlang/lib/os_mon-2.2.7/priv/bin/cpu_sup
1000 15564 0.0 0.0 4392 820 pts/1 S+ 19:23 0:00 grep --color=auto erl
我知道我现在需要运行kill -9 {pid of rabbitmq process}
,但是pid是哪个数字?
I know I need to run kill -9 {pid of rabbitmq process}
now, but which number is the pid?
如何停止与Rabbitmq有关的一切,我不希望它干扰我的节点js
How do I stop everything to do with rabbitmq, I don't want it interfering with my node js
推荐答案
您有几个选择:
- 首先,尝试使用init.d脚本
sudo /etc/init.d/rabbitmq-server stop
正常关闭RabbitMQ.
- 如果这不起作用,请使用
ps -eaf | grep erl
查找进程和父ID.输出中的第三列是父进程ID.在仍然是erlang进程(而不是启动它的shell脚本)中找到所有进程的第一个祖先,并将其杀死.这应该终止其他子进程.如果不是,请手动将其杀死.
- First, try shutting RabbitMQ down gracefully with the init.d script
sudo /etc/init.d/rabbitmq-server stop
- If that doesn't work, use
ps -eaf | grep erl
to find the process and parent ids. The third column in the output is the parent process ID. Find the first ancestor of all the processes that is still the erlang process (not the shell script that started it) and kill that. This should terminate the other sub processes. If not, kill those manually.
这篇关于如何停止rabbitmq服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文