Create and Run an AMQ Broker Instance:
artemis script located in the
bin folder is the starting point to manage our AMQ installation.
Create a Broker Instance:
Execute the following command to create a new broker in the instances folder.
$ <AMQ_HOME>/bin/artemis create --user admin --password password --role admin --allow-anonymous y <AMQ_HOME>/instances/mybroker
This command creates a broker in <AMQ_HOME>/instances/mybroker folder, with the admin default user with admin role and password as their password. This broker also accepts anonymous users to connect to the broker from localhost. The folder where the broker is installed is referred as AMQ_INSTANCE.
Start the Broker Instance:
To start the broker you only need to run this command from the <AMQ_INSTANCE> folder:
$ bin/artemis run
After you run this command a console log will appear and the broker will be running.