{"id":8641,"date":"2021-07-30T08:56:44","date_gmt":"2021-07-30T08:56:44","guid":{"rendered":"https:\/\/linuxways.net\/?p=8641"},"modified":"2021-07-30T08:56:44","modified_gmt":"2021-07-30T08:56:44","slug":"install-kong-api-gateway-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/install-kong-api-gateway-on-ubuntu-20-04\/","title":{"rendered":"Install Kong API Gateway on Ubuntu 20.04"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>Kong Gateway is one of the most famous API Gateways in the Cloud Native world. It\u2019s used to manage the lifecycle of APIs and micro-services.<\/p>\n<p>This tutorial will show you the way to install Kong API Gateway on Ubuntu 20.04.<\/p>\n<h2>Installation<\/h2>\n<p>First, let\u2019s download the package by running the following command:<\/p>\n<pre>$ curl -Lo kong.2.5.0.amd64.deb \"https:\/\/download.konghq.com\/gateway-2.x-ubuntu-$(lsb_release -cs)\/pool\/all\/k\/kong\/kong_2.5.0_amd64.deb\"<\/pre>\n<p>Then, install the deb file by dpkg command:<\/p>\n<pre>$ sudo dpkg -i kong.2.5.0.amd64.deb<\/pre>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1644\" height=\"440\" class=\"wp-image-8642\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-635.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-635.png 1644w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-635-300x80.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-635-1024x274.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-635-768x206.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-635-1536x411.png 1536w\" sizes=\"auto, (max-width: 1644px) 100vw, 1644px\" \/><\/p>\n<p>In this tutorial, we will not use a database (Kong will run in the DB-less mode). Run the following command to generate the config file for Kong:<\/p>\n<pre>$ kong config init<\/pre>\n<p>A config file name kong.yml will be created after running the above command. Let\u2019s edit the kong.yml file as follow:<\/p>\n<pre>database = off\r\n\r\ndeclarative_config: \/home\/ubuntu\/kong.yml<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1294\" height=\"132\" class=\"wp-image-8643\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-636.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-636.png 1294w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-636-300x31.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-636-1024x104.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-636-768x78.png 768w\" sizes=\"auto, (max-width: 1294px) 100vw, 1294px\" \/><\/p>\n<h2>Running Kong<\/h2>\n<p>To start Kong, you can simply run the following command:<\/p>\n<pre>$ kong start -c kong.yml<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1654\" height=\"180\" class=\"wp-image-8644\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-637.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-637.png 1654w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-637-300x33.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-637-1024x111.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-637-768x84.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-637-1536x167.png 1536w\" sizes=\"auto, (max-width: 1654px) 100vw, 1654px\" \/><\/p>\n<p>To verify that Kong is running:<\/p>\n<pre>$ curl -i <a href=\"http:\/\/localhost:8001\">http:\/\/localhost:8001<\/a><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1324\" height=\"350\" class=\"wp-image-8645\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-638.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-638.png 1324w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-638-300x79.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-638-1024x271.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-638-768x203.png 768w\" sizes=\"auto, (max-width: 1324px) 100vw, 1324px\" \/><\/p>\n<h2>Conclusion<\/h2>\n<p>You\u2019ve already gone through the details of how to install the KONG API Gateway on Ubuntu 20.04.<\/p>\n<p>Thanks for reading.<\/p>","protected":false},"excerpt":{"rendered":"<p>Introduction Kong Gateway is one of the most famous API Gateways in the Cloud Native world. It\u2019s used to manage the lifecycle of APIs and micro-services. This tutorial&hellip;<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[442,100],"class_list":["post-8641","post","type-post","status-publish","format-standard","hentry","category-ubuntu","tag-kong-api-gateway","tag-ubuntu-20-04"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/8641","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=8641"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/8641\/revisions"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=8641"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=8641"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=8641"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}