Skip to content

Latest commit

 

History

History
82 lines (58 loc) · 2.04 KB

File metadata and controls

82 lines (58 loc) · 2.04 KB

APIM Full Stack Installation

This page describes how to install the full APIM stack and its dependencies at once.

Prerequisites

  • Amazon instance running
  • Gravitee yum repository added
  • Java 17 JRE installed
  • MongoDB installed and running
  • ElasticSearch installed and running
  • Nginx installed

Security group

  • open port 8082
  • open port 8083
  • open port 8084
  • open port 8085

Instructions

  1. Install all Gravitee APIM components:
sudo yum install graviteeio-apim-4x -y
  1. Enable Gateway and Management API on startup:
$ sudo systemctl daemon-reload
$ sudo systemctl enable graviteeio-apim-gateway
$ sudo systemctl enable graviteeio-apim-rest-api
  1. Start Gateway and Management API:
$ sudo systemctl start graviteeio-apim-gateway
$ sudo systemctl start graviteeio-apim-rest-api
  1. Restart Nginx:
sudo systemctl restart nginx
  1. Verify, if any of the prerequisites are missing, you will receive errors during this step:
sudo journalctl -f

{% hint style="info" %} You can see the same logs in /opt/graviteeio/apim/gateway/logs/gravitee.log and /opt/graviteeio/apim/rest-api/logs/gravitee.log {% endhint %}

  1. Additional verification:
$ sudo ss -lntp '( sport = 8082 )'
$ sudo ss -lntp '( sport = 8083 )'
$ sudo ss -lntp '( sport = 8084 )'
$ sudo ss -lntp '( sport = 8085 )'

You should see that there are processes listening on those ports.

  1. Final verification:
$ curl -X GET http://localhost:8082/
$ curl -X GET http://localhost:8083/management/organizations/DEFAULT/console
$ curl -X GET http://localhost:8083/portal/environments/DEFAULT/apis

If the installation was successful, then the first API call returns: No context-path matches the request URI. The final two API calls should return a JSON payload in the response.

{% hint style="success" %} Congratulations! Now that APIM is up and running, check out the Quickstart Guide for your next steps. {% endhint %}