This page describes how to install the full APIM stack and its dependencies at once.
- Amazon instance running
- Gravitee
yum
repository added - Java 17 JRE installed
- MongoDB installed and running
- ElasticSearch installed and running
- Nginx installed
- open port 8082
- open port 8083
- open port 8084
- open port 8085
- Install all Gravitee APIM components:
sudo yum install graviteeio-apim-4x -y
- Enable Gateway and Management API on startup:
$ sudo systemctl daemon-reload
$ sudo systemctl enable graviteeio-apim-gateway
$ sudo systemctl enable graviteeio-apim-rest-api
- Start Gateway and Management API:
$ sudo systemctl start graviteeio-apim-gateway
$ sudo systemctl start graviteeio-apim-rest-api
- Restart Nginx:
sudo systemctl restart nginx
- 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 %}
- 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.
- 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 %}