This section provides details about setting up ActiveMQ as a startup service.
Set the path for the JAVA_HOME environment variable.
Set the path for the ACTIVEMQHOME environment variable in the /root/.profile file to point to the ActiveMQ installation location. The .profile file needs to be created if it does not exist.
Navigate to the ActiveMQ installation directory and run activemqAddSvc by executing the following command:
./activemqAddSvc
To start the ActiveMQ service, execute the following command:
/etc/init.d/activemqdxml start
To stop the ActiveMQ service, execute the following command:
/etc/init.d/activemqdxml stop
To add the ActiveMQ service to the Windows services list, navigate to ACTIVEMQ_HOME/bin/win64 and run InstallService.bat.
This creates the ActiveMQ service in the Windows service list. This service automatically starts when the system reboots.
To remove the ActiveMQ service from the Windows services list, run UninstallService.bat.