1. Create a new rabbitmq in the /etc/init.d directory [root@localhost init.d]# vi rabbitmq File Contents #!/bin/bash #chkconfig:2345 61 61 export HOME=/opt/data/rabbitmq/ export PATH=$PATH:/usr/local/erlang/bin export PATH=$PATH:/usr/local/src/rabbitmq_server-3.6.15/sbin case "$1" in start) echo "Starting RabbitMQ ..." rabbitmq-server-detached ;; stop) echo "Stopping RabbitMQ ..." rabbitmqctl stop ;; status) echo "Status RabbitMQ ..." rabbitmqctl status ;; restart) echo "Restarting RabbitMQ ..." rabbitmqctl stop rabbitmq-server restart ;; *) echo "Usage: $prog {start|stop|status|restart}" ;; esac exit 0 2. Grant executable permissions to rabbitmq [root@localhost init.d]# chmod 777 rabbitmq 3. Add rabbitmq service to system services [root@localhost init.d]# chkconfig --add rabbitmq 4. Set up auto-start [root@localhost init.d]# chkconfig rabbitmq on 5. Check whether the startup item is set successfully [root@localhost init.d]# chkconfig --list rabbitmq 6. Enable rabbit service [root@localhost init.d]# ./rabbitmq start 7. Test boot and restart [root@localhost init.d]#reboot [root@localhost ~]# ps -elf|grep rabbitmq The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Introduction to Sublime Text 2, a web front-end tool
>>: Detailed explanation of the default values of width and height in CSS: auto and %
Solution to 1449 and 1045 exceptions when connect...
Table of contents Preface Virtual DOM What is Vir...
From getting started to becoming a novice, the Li...
In the previous article, I introduced how to solv...
MySQL is a commonly used open source database sof...
MySQL sequence AUTO_INCREMENT detailed explanatio...
How to use the code in NetEase Blog: First log in...
Seeing the recent popular WeChat tap function, I ...
Why do you need to learn CSS overflow mechanism i...
Table of contents 1. Install html2Canvas 2. Intro...
Table of contents Changes in the life cycle react...
Table of contents 1. Two-way binding 2. Will the ...
> Deploy MySQL 5.7 cluster master & slave ...
question: My blog encoding is utf-8. Sometimes whe...
Definition and Usage The display property specifi...