Linux changes activemq to self-booting

Source: Internet
Author: User
Tags syslog

1, under the root permission to operate

2, Ln-s/USR/LOCAL/ACTIVEMQ/BIN/ACTIVEMQ/ETC/INIT.D/ACTIVEMQ

3, VI/ETC/INIT.D/ACTIVEMQ

4, add in the second line

# # # # BEGIN INIT INFO  # provides:             activemq  # required-start:       $remote _fs $syslog  # required-stop:        $remote _fs $syslog  # Default-start:        2 3 4 5  # Default-stop:         0 6  # chkconfig:2345  Hort-description:    ActiveMQ Server  # # # # END INIT INFO  

5. Add after the last #

Export JAVA_HOME=/USR/LOCAL/JDKACTIVEMQ_HOME=/USR/LOCAL/ACTIVEMQ  

6, Chkconfig activemq on set to boot

7, Chkconfig activemq off set to boot does not start

8. Service ACTIVEMQ start/stop start/close

 

Linux changes activemq to self-booting

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.