This tutorial will guide you through the process of installing Kong on Ubuntu Server Latest, step by step.
Before you start, make sure you have:
To install Kong on Ubuntu server, you need to install some dependencies first:
sudo apt-get update
sudo apt-get -y install wget openssl libpcre3 procps perl
cd /tmp
wget https://bintray.com/kong/kong-community-edition-deb/download_file?file_path=dists/kong-community-edition-0.15.0~xenial_all.deb -O kong.deb
sudo dpkg -i kong.deb
Kong requires some configuration to work properly.
sudo nano /etc/kong/kong.conf
pg_host
to your Postgres database host:# database = postgres
# pg_host = 127.0.0.1
# pg_port = 5432
# pg_timeout = 5000
# pg_user = kong
# pg_password = kong
# pg_database = kong
sudo service kong start
sudo service kong status
If all goes well, the output should say "active (running)".
http://localhost:8001/
curl -i http://localhost:8001/
You should see a JSON response with status 200 OK.
Congratulations! You have successfully installed Kong on Ubuntu Server Latest. You can now start using Kong to manage your APIs. Happy Coding!
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!