当我尝试重新启动 mqqtt-server 时,它失败且没有任何错误
ubuntu@ip:~$ sudo service rabbitmq-server restart
* Restarting message broker rabbitmqserver [fail]
ubuntu@ip:~$ sudo service rabbitmq-server status1
然后我尝试启动rabbitmq-server
ubuntu@ip:~$ sudo service rabbitmq-server start
* Starting message broker rabbitmq server message broker already running[ OK ]
之后我试图停止rabbitmq-server
ubuntu@ip:~$ sudo service rabbitmq-server stop
* Stopping message broker rabbitmq-server FAILED - check /var/log/rabbitmq/startup_\{log, _err\} [fail]
ubuntu@:~$
之后我尝试检查建议的日志,但什么也没有
ubuntu@ip:/var/log/rabbitmq$ cat startup_log
ERROR: node with name "rabbit" already running on "ip"
ubuntu@ip:/var/log/rabbitmq$ cat startup_err
ubuntu@ip:/var/log/rabbitmq$
任何建议,如何重新启动rabbitmq-server
?
编辑:service --status-all
显示 rabbitmq-server 未激活。
ubuntu@ip:~$ service --status-all
[ + ] acpid
[ - ] apparmor
[ ? ] apport
[ + ] atd
[ ? ] console-setup
[ + ] cron
[ ? ] cryptdisks
[ ? ] cryptdisks-early
[ - ] dbus
[ ? ] dns-clean
[ + ] friendly-recovery
[ - ] grub-common
[ ? ] irqbalance
[ ? ] killprocs
[ ? ] kmod
[ - ] landscape-client
[ ? ] networking
[ ? ] ondemand
[ ? ] open-vm-tools
[ ? ] pppd-dns
[ - ] procps
[ - ] rabbitmq-server
[ ? ] rc.local
[ + ] resolvconf
[ - ] rsync
[ + ] rsyslog
[ ? ] screen-cleanup
[ ? ] sendsigs
[ - ] ssh
[ - ] sudo
[ - ] udev
[ ? ] umountfs
[ ? ] umountnfs.sh
[ ? ] umountroot
[ - ] unattended-upgrades
[ - ] urandom
[ - ] x11-common
ubuntu@ip:~$
rabbitmq-server
使用查找正在运行的进程IDps -ef
rabbitmq
使用sudo kill -9 id1 id2 ...
rabbitmq-server
开始sudo service rabbitmq-server start
ps -ef | grep rabbitmq