Page History
...
Table of Contents |
---|
Microgateway Toolkit
Note |
---|
Note that WSO2 API Microgateway Toolkit should not be used in a production environment. |
Ensure that your system meets the following basic prerequisites.
JDK Development environment with Open JDK 1.8 (e.g., AdoptOpenJDK 8, OpenJDK 8) Set up JAVA_HOME based on your operating system.
- Setup
JAVA_HOME
for Linux/Mac OS.You must set your
JAVA_HOME
environment variable to point to the directory where the Java Development Kit (JDK) is installed on the computer.Info icon false Environment variables are global system variables accessible by all the processes running under the operating system.
- In your home directory, open the
bashrc
file (.bash_profile
file on Mac) using editors such as vi, emacs, pico, or mcedit. Assuming you have JDK 1.8.0_171 in your system, add the following two lines at the bottom of the file, replacing
/usr/java/jdk1.8.0_171
with the actual directory where the JDK is installed.Code Block On Linux: export JAVA_HOME=/usr/java/jdk1.8.0_171 export PATH=${JAVA_HOME}/bin:${PATH} On OS X: export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.8.0.jdk/Contents/Home
Save the file.
Info If you do not know how to work with text editors in a Linux SSH session, run the following command:
cat >> .bashrc.
Paste the string from the clipboard and press "Ctrl+D."To verify that the
JAVA_HOME
variable is set correctly, execute the following command:The system returns the JDK installation path.
Code Block On Linux: echo $JAVA_HOME On OS X: which java If the above command gives you a path like /usr/bin/java, then it is a symbolic link to the real location. To get the real location, run the following: ls -l `which java`
- In your home directory, open the
- Setup JAVA_HOME for Windows.
Set theJAVA_HOME
environment variable as a user variable via the edit system properties UI.
- Setup
Log in to the command line (Terminal on Mac).
Download the WSO2 API Microgateway toolkit distribution.
Extract the archive file to a dedicated directory for the WSO2 API Microgateway Toolkit, which will hereafter be referred to as
<MGW-TK_HOME>
.Append the full path of the
/bin
folder of the extracted WSO2 API Microgateway toolkit distribution to the PATH environment variable.
This allows you to run the WSO2 API Microgateway toolkit related commands from any directory location.Linux and OS X
Code Block title Example export PATH=$PATH:<extracted_toolkit_location>/bin
Windows
Use one of the following approaches to define the paths.Set the Microgateway toolkit distribution path using the following command in the terminal.
Code Block title Example setx "%path%;<extracted_toolkit_location>/bin"
Set the Microgateway toolkit distribution path using the UI in Windows.
Note The steps involved in setting the environment variables may vary based on the version of your Windows OS.
- Copy the path to the Microgateway Toolkit
bin
folder (<path-to-wso2am-micro-gw-toolkit>\bin
). - Click Edit the system preferences.
' - Navigate to the Advanced tab and click Environment Variables.
Navigate to the path system variable and click Edit.
Click New, add the path of the Microgateway Toolkit
bin
folder that you copied previously and click OK three times to save the newly added system variable.
- Copy the path to the Microgateway Toolkit
Optionally, configure WSO2 API Microgateway Toolkit with WSO2 API Manager 3.0.0.
Note This is only applicable if you are working with WSO2 API Manager 3.0.0.
Microgateway Runtime
Ensure that your system meets the following basic prerequisites.
Memory 256MB Cores 2 OS Any Log in to the command line (Terminal on Mac).
Download the WSO2 API Microgateway distribution based on your OS and extract it.
Extract the archive file to a dedicated directory for the WSO2 API Microgateway Runtime, which will hereafter be referred to as
<MGW_HOME>
.Append the full path of the
/bin
folder of the extracted WSO2 API Microgateway distribution to the PATH environment variable.
This allows you to run the WSO2 API Microgateway distribution-related commands from any directory location.Linux and OS X
Code Block title Example export PATH=$PATH:<extracted_distribution_location>/bin
Windows
Use one of the following approaches to define the paths.
Set the Microgateway toolkit distribution path using the following command in the terminal.
Code Block title Example setx "%path%;<extracted_distribution_location>/bin"
Set the Microgateway runtime distribution path using the UI in Windows.
Optionally, configure WSO2 API Microgateway Runtime with WSO2 API Manager 3.0.0.
Note This is only applicable if you are working with WSO2 API Manager 3.0.0.