...
Note |
---|
In Stratos, the Mock IaaS is enabled by default. If you wish to disable the Mock IaaS, navigate to the |
Table of Contents |
---|
MAVEN_OPTS='-Xms2048m -Xmx4096m -XX:MaxPermSize=1024m'
to avoid the maven OutOfMemoryError.
export MAVEN_OPTS='-Xms2048m -Xmx4096m -XX:MaxPermSize=1024m'
Follow the steps below to start Stratos on a Mock IaaS:
Ensure that the above mentioned prerequisites have been met prior to the Apache Stratos installation.
Obtain the apache-stratos-<VERSION>-SNAPSHOT.zip
binary file. This can be done using any of the following methods:
Download the Stratos binary distribution from Apache Download Mirrors.
Build the Stratos source using the following instructions:
Checkout the source from Apache Stratos remote repository to a folder of your choice.
git clone https://git-wip-us.apache.org/repos/asf/stratos.git <local-folder-name>
For example:
git clone https://git-wip-us.apache.org/repos/asf/stratos.git myLocalRepo
Info |
---|
Make sure that you have setup Git properly. For more information, go to http://git-scm.com/book/en/Getting-Started-First-Time-Git-Setup |
Build Stratos using Maven.
stratos/
directory, which is within the directory that you checked out the source.cd <local-folder-name>/stratos/
cd myLocalRepo/stratos/
Use Maven to build the source.
mvn clean install
Info | ||||||
---|---|---|---|---|---|---|
You can use one of the following commands instead of the above Maven build command
|
Unzip the Stratos binary distribution (apache-stratos-<VERSION>-SNAPSHOT.zip
). If you built Stratos from source, the binary distribution can be found in the <STRATOS_HOME>/products/stratos/modules/distribution/target/
directory.
Tip |
---|
For easy access, move the Stratos binary distribution to a location of your choice. |
Unzip the ActiveMQ distribution.
Navigate to the <ACTIVEMQ-HOME>/bin/
directory, which is in the unzipped ActiveMQ distribution, and run the following command to start ActiveMQ.
./activemq start
Navigate to the <apache-stratos-<VERSION>-SNAPSHOT>/bin/
directory, which is in the unzipped Stratos distribution, and run the following command to start Stratos.
./stratos.sh
Once the installation is complete, the Carbon management console URL will appear.
For example:
...
Note |
---|
If you run any commands before Stratos has started successfully, errors will occur. |
Follow the instructions below to stop Stratos and ActiveMQ:
...