In this section, you'll learn how to manage your Kong instance. First we'll have you start Kong giving in order to give you access to the RESTful Admin interface, through which you manage your APIs, consumers, and more. Data sent through the Admin API is stored in Kong's datastore (Kong supports PostgreSQL and Cassandra).
Issue the following command to start Kong:
$ kong start
Note: The CLI also accepts a configuration (
-c <path_to_config>) option allowing you to point to different configurations.
Verify that Kong has started successfully
The previous step runs migrations to prepare your database. Once these have finished you should see a message (
Kong started) informing you that Kong is running.
By default Kong listens on the following ports:
:8000on which Kong listens for incoming HTTP traffic from your clients, and forwards it to your upstream services.
:8443on which Kong listens for incoming HTTPS traffic. This port has a similar behavior as the
:8000port, except that it expects HTTPS traffic only. This port can be disabled via the configuration file.
:8001on which the Admin API used to configure Kong listens.
:8444on which the Admin API listens for HTTPS traffic.
As needed you can stop the Kong process by issuing the following command:
$ kong stop
Issue the following command to reload Kong without downtime:
$ kong reload
Now that you have Kong running you can interact with the Admin API.
To begin, go to Adding your API ›