Up and Running with WSO2 API Manager
WSO2 API Manager is a free and open source API managing tool that facilitate creating, publishing, life cycle management and monetization of APIs in a secure and affordable manner. Installing and running the product is obvious. But prior to installing the product API Manager, there are few application that recommended to be install in order to run the API manager. Let's looking to them one by one:
Oracle javaSE Development Kit(jdk)
jdk is nessassary since program is launch, build and run on top of java. follow the following steps to download and install jdk in to your machine.
For the installation you need sudo privileges, for that type sudo su and enter.
Create a directory for jdk installation.
mkdir /opt/jdk
Extract the tar.gz file into created directory.
tar -zxf jdk-8u5-linux-x64.tar.gz -C /opt/jdk
To install java and javac type the following commands and enter.
update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_05/bin/java
update-alternatives --install /usr/bin/javac javac /opt/jdk/jdk1.8.0_05/bin/javac
Next we have to set the JAVA_HOME variable. Following tutorial will explain the steps to set the JAVA_HOME and PATH variables permanently.
Apache maven
Apache maven is required to build the product from the source code.
create a directory for maven installation.
mkdir /opt/maven
Extract the tar.gz file into created directory.
tar -zvxf apache-maven-3.3.9-bin.tar.gz -C /opt/maven
open the bashrc file and add the bin directory of the created directory apache-maven-3.3.9 to the PATH environment variable
To confirm the maven installation open up a new terminal and type mvn -v and enter. If installed correctly result look similar to following.
Apache Ant
Apache ant is required to compile and run the product
create a directory for ant installation.
mkdir /opt/ant
Extract the tar.gz file into created directory.
tar -zvxf apache-ant-1.9.7-bin.tar.gz -C /opt/ant
open the .bashrc file and add the bin directory of the created directory apache-ant-1.9.7 to the PATH environment variable as did in installing apache maven.
To confirm the maven installation open up a new terminal and type ant-version and enter. Result will look as follows if installed correctly.
Installing and running WSO2 API Manager.
After fulfilling above prerequisites it is possible to install and run the product. Visit the site http://wso2.com/api-management/ and download the latest version of WSO2 API Manager.
Extract the archive in to a seperate directory
product can be run by executing one of the given commands
- Windows: <APIM_HOME>/bin/wso2server.bat --run
- Linux: sh <APIM_HOME>/bin/wso2server.sh
No comments:
Post a Comment