...
Code Block |
$ ACTIVEMQ_HOME/bin/activemq create /path/to/brokers/mybroker |
Configuring the script
For ActiveMQ server to run properly some basic system variables must be set. These variables define how much memory broker will have, SSL, logging, JAAS options and similar. Prior to version 5.11.0 these parameters were configurable in activemq script itself. You could use setup command to create additional system wide scripts to configure the broker.
setup - create the specified configuration file for this Unix script. The configuration of the script can be placed at /etc/default/activemq or $HOME/.activemqrc. Note, this is the configuration for the script not for configuring ActiveMQ.
To use addtional configurations for running multiple instances on the same operating system rename or symlink script to a name matching to activemq-instance-<INSTANCENAME>. This changes the configuration location to /etc/default/activemq-instance-<INSTANCENAME> and $HOME/.activemqrc-instance-<INSTANCENAME>. Configuration files in /etc have higher precedence.
Since 5.11.0, all configuration variables are moved to the new env script, so that they can be easily configured at one place. This script can be copied to /etc/default/activemq or $HOME/.activemqrc to provide system-wide settings.