{"id":4812,"date":"2023-04-27T22:57:39","date_gmt":"2023-04-27T22:57:39","guid":{"rendered":"https:\/\/www.webhi.com\/how-to\/?p=4812"},"modified":"2023-04-27T22:57:41","modified_gmt":"2023-04-27T22:57:41","slug":"install-postgresql-in-ubuntu-18-04-20-4-22-04","status":"publish","type":"post","link":"https:\/\/www.webhi.com\/how-to\/install-postgresql-in-ubuntu-18-04-20-4-22-04\/","title":{"rendered":"Install PostgreSQL in Ubuntu 18.04\/ 20.4\/ 22.04"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1200\" height=\"675\" src=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/04\/postgresql_ubuntu_en.jpg\" alt=\"Step-by-step guide installation PostgreSQL\" class=\"wp-image-4848\" srcset=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/04\/postgresql_ubuntu_en.jpg 1200w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/04\/postgresql_ubuntu_en-300x169.jpg 300w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/04\/postgresql_ubuntu_en-1024x576.jpg 1024w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/04\/postgresql_ubuntu_en-768x432.jpg 768w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/04\/postgresql_ubuntu_en-150x84.jpg 150w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p><strong>PostgreSQL <\/strong>is a powerful and open-source relational database management system. It is widely used for data storage and retrieval in modern applications.<\/p>\n\n\n\n<p>In this guide, we will learn how to install PostgreSQL on Ubuntu, create a new role, and a new database.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-1---update-ubuntus-package-index\">Step 1 &#8211; Update Ubuntu&#8217;s package index<\/h2>\n\n\n\n<p>Before installing any package in Ubuntu, it&#8217;s always a good practice to update the system&#8217;s package index. This ensures that you have the latest package information and dependencies required for installation.<\/p>\n\n\n\n<p>Open a terminal and run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo apt update<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-2---install-postgresql\">Step 2 &#8211; Install PostgreSQL<\/h2>\n\n\n\n<p>To install PostgreSQL on Ubuntu, run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo apt install postgresql postgresql-contrib<\/code><\/pre>\n\n\n\n<p>This command will install the PostgreSQL server and client packages along with additional contrib packages.<\/p>\n\n\n\n<p>During the installation process, you will be prompted to create a password for the PostgreSQL database superuser (postgres).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-3---verify-postgresql-installation\">Step 3 &#8211; Verify PostgreSQL installation<\/h2>\n\n\n\n<p>To verify that PostgreSQL is installed and running, you can run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo systemctl status postgresql<\/code><\/pre>\n\n\n\n<p>This command will show you the status of the PostgreSQL service. If the service is running, you should see a message indicating that it&#8217;s active.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-4---access-postgresql\">Step 4 &#8211; Access PostgreSQL<\/h2>\n\n\n\n<p>To access PostgreSQL, you can use the psql command-line interface. To start the psql shell, run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo -u postgres psql<\/code><\/pre>\n\n\n\n<p>This will log you in as the PostgreSQL superuser (postgres) and give you access to the PostgreSQL command-line interface.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-5---creating-a-new-role\">Step 5 &#8211; Creating a New Role<\/h2>\n\n\n\n<p>A role is a user account that can log in to a PostgreSQL database cluster. To create a new role, follow these steps:<\/p>\n\n\n\n<p>In the PostgreSQL command-line interface, type the following command to create a new role:<\/p>\n\n\n\n<pre title=\"SQL\" class=\"wp-block-code\"><code lang=\"sql\" class=\"language-sql\">CREATE ROLE newuser WITH LOGIN PASSWORD 'password';<\/code><\/pre>\n\n\n\n<p>Replace newuser with the name of the new user you want to create, and password with a secure password for the user.<\/p>\n\n\n\n<p>To grant the new role permission to create databases, type the following command:<\/p>\n\n\n\n<pre title=\"sql\" class=\"wp-block-code\"><code lang=\"sql\" class=\"language-sql\">ALTER ROLE newuser CREATEDB;<\/code><\/pre>\n\n\n\n<p>This will allow the new user to create databases.<\/p>\n\n\n\n<p>To exit the PostgreSQL command-line interface, type \\q and press Enter.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-6---creating-a-new-database\">Step 6 &#8211; Creating a New Database<\/h2>\n\n\n\n<p>To create a new database in PostgreSQL, follow these steps:<\/p>\n\n\n\n<p>Log in to the PostgreSQL command-line interface as the superuser (postgres) by running the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo -u postgres psql<\/code><\/pre>\n\n\n\n<p>Type the following command to create a new database:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"sql\" class=\"language-sql\">CREATE DATABASE newdatabase;<\/code><\/pre>\n\n\n\n<p>Replace newdatabase with the name of the new database you want to create.<\/p>\n\n\n\n<p>To grant permission to the new user (newuser) to access the new database (newdatabase), type the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"sql\" class=\"language-sql\">GRANTALL PRIVILEGES ON DATABASE newdatabase TO newuser;<\/code><\/pre>\n\n\n\n<p>This will give the new user full access to the new database.<\/p>\n\n\n\n<p>To exit the PostgreSQL command-line interface, type \\q and press Enter.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"conclusion\">Conclusion<\/h2>\n\n\n\n<p>Congratulations! You have successfully installed PostgreSQL on Ubuntu, created a new role, and a new database. You can now start using PostgreSQL for your data storage and retrieval needs.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PostgreSQL is a powerful and open-source relational database management system. It is widely used for data storage and retrieval in modern applications. In this guide, we will learn how to install PostgreSQL on Ubuntu, create a new role, and a new database. Step 1 &#8211; Update Ubuntu&#8217;s package index Before installing any package in Ubuntu, ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/www.webhi.com\/how-to\/install-postgresql-in-ubuntu-18-04-20-4-22-04\/\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[57,69],"tags":[],"yoast_head":"\n<title>Install PostgreSQL in Ubuntu 18.04\/ 20.4\/ 22.04 - WebHi Tutorials &amp; Documentations<\/title>\n<meta name=\"description\" content=\"Learn how to install PostgreSQL in Ubuntu 18.04, 20.04, and 22.04 with this step-by-step guide. Our article provides a comprehensive overview of the installation process, including key commands and troubleshooting tips.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.webhi.com\/how-to\/install-postgresql-in-ubuntu-18-04-20-4-22-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Install PostgreSQL in Ubuntu 18.04\/ 20.4\/ 22.04 - WebHi Tutorials &amp; Documentations\" \/>\n<meta property=\"og:description\" content=\"Learn how to install PostgreSQL in Ubuntu 18.04, 20.04, and 22.04 with this step-by-step guide. Our article provides a comprehensive overview of the installation process, including key commands and troubleshooting tips.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webhi.com\/how-to\/install-postgresql-in-ubuntu-18-04-20-4-22-04\/\" \/>\n<meta property=\"og:site_name\" content=\"WebHi Tutorials &amp; Documentations\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webhi.technology\" \/>\n<meta property=\"article:published_time\" content=\"2023-04-27T22:57:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-04-27T22:57:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/04\/postgresql_ubuntu_en.jpg\" \/>\n<meta name=\"author\" content=\"webhi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@WebHiTechnology\" \/>\n<meta name=\"twitter:site\" content=\"@WebHiTechnology\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"webhi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/install-postgresql-in-ubuntu-18-04-20-4-22-04\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/install-postgresql-in-ubuntu-18-04-20-4-22-04\/\"},\"author\":{\"name\":\"webhi\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54\"},\"headline\":\"Install PostgreSQL in Ubuntu 18.04\/ 20.4\/ 22.04\",\"datePublished\":\"2023-04-27T22:57:39+00:00\",\"dateModified\":\"2023-04-27T22:57:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/install-postgresql-in-ubuntu-18-04-20-4-22-04\/\"},\"wordCount\":446,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#organization\"},\"articleSection\":[\"Databases\",\"Linux system administration\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.webhi.com\/how-to\/install-postgresql-in-ubuntu-18-04-20-4-22-04\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/install-postgresql-in-ubuntu-18-04-20-4-22-04\/\",\"url\":\"https:\/\/www.webhi.com\/how-to\/install-postgresql-in-ubuntu-18-04-20-4-22-04\/\",\"name\":\"Install PostgreSQL in Ubuntu 18.04\/ 20.4\/ 22.04 - WebHi Tutorials &amp; Documentations\",\"isPartOf\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#website\"},\"datePublished\":\"2023-04-27T22:57:39+00:00\",\"dateModified\":\"2023-04-27T22:57:41+00:00\",\"description\":\"Learn how to install PostgreSQL in Ubuntu 18.04, 20.04, and 22.04 with this step-by-step guide. Our article provides a comprehensive overview of the installation process, including key commands and troubleshooting tips.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/install-postgresql-in-ubuntu-18-04-20-4-22-04\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.webhi.com\/how-to\/install-postgresql-in-ubuntu-18-04-20-4-22-04\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/install-postgresql-in-ubuntu-18-04-20-4-22-04\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.webhi.com\/how-to\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Install PostgreSQL in Ubuntu 18.04\/ 20.4\/ 22.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#website\",\"url\":\"https:\/\/www.webhi.com\/how-to\/\",\"name\":\"WebHi Tutorials &amp; Documentations\",\"description\":\"System administration and knowledge base\",\"publisher\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.webhi.com\/how-to\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#organization\",\"name\":\"WebHi Technology\",\"url\":\"https:\/\/www.webhi.com\/how-to\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png\",\"contentUrl\":\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png\",\"width\":288,\"height\":95,\"caption\":\"WebHi Technology\"},\"image\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webhi.technology\",\"https:\/\/twitter.com\/WebHiTechnology\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54\",\"name\":\"webhi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1782424353\",\"contentUrl\":\"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1782424353\",\"caption\":\"webhi\"},\"sameAs\":[\"https:\/\/www.webhi.com\/how-to\"],\"url\":\"https:\/\/www.webhi.com\/how-to\/author\/webhi\/\"}]}<\/script>\n","yoast_head_json":{"title":"Install PostgreSQL in Ubuntu 18.04\/ 20.4\/ 22.04 - WebHi Tutorials &amp; Documentations","description":"Learn how to install PostgreSQL in Ubuntu 18.04, 20.04, and 22.04 with this step-by-step guide. Our article provides a comprehensive overview of the installation process, including key commands and troubleshooting tips.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.webhi.com\/how-to\/install-postgresql-in-ubuntu-18-04-20-4-22-04\/","og_locale":"en_US","og_type":"article","og_title":"Install PostgreSQL in Ubuntu 18.04\/ 20.4\/ 22.04 - WebHi Tutorials &amp; Documentations","og_description":"Learn how to install PostgreSQL in Ubuntu 18.04, 20.04, and 22.04 with this step-by-step guide. Our article provides a comprehensive overview of the installation process, including key commands and troubleshooting tips.","og_url":"https:\/\/www.webhi.com\/how-to\/install-postgresql-in-ubuntu-18-04-20-4-22-04\/","og_site_name":"WebHi Tutorials &amp; Documentations","article_publisher":"https:\/\/www.facebook.com\/webhi.technology","article_published_time":"2023-04-27T22:57:39+00:00","article_modified_time":"2023-04-27T22:57:41+00:00","og_image":[{"url":"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/04\/postgresql_ubuntu_en.jpg"}],"author":"webhi","twitter_card":"summary_large_image","twitter_creator":"@WebHiTechnology","twitter_site":"@WebHiTechnology","twitter_misc":{"Written by":"webhi","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/www.webhi.com\/how-to\/install-postgresql-in-ubuntu-18-04-20-4-22-04\/#article","isPartOf":{"@id":"https:\/\/www.webhi.com\/how-to\/install-postgresql-in-ubuntu-18-04-20-4-22-04\/"},"author":{"name":"webhi","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54"},"headline":"Install PostgreSQL in Ubuntu 18.04\/ 20.4\/ 22.04","datePublished":"2023-04-27T22:57:39+00:00","dateModified":"2023-04-27T22:57:41+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webhi.com\/how-to\/install-postgresql-in-ubuntu-18-04-20-4-22-04\/"},"wordCount":446,"commentCount":0,"publisher":{"@id":"https:\/\/www.webhi.com\/how-to\/#organization"},"articleSection":["Databases","Linux system administration"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.webhi.com\/how-to\/install-postgresql-in-ubuntu-18-04-20-4-22-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webhi.com\/how-to\/install-postgresql-in-ubuntu-18-04-20-4-22-04\/","url":"https:\/\/www.webhi.com\/how-to\/install-postgresql-in-ubuntu-18-04-20-4-22-04\/","name":"Install PostgreSQL in Ubuntu 18.04\/ 20.4\/ 22.04 - WebHi Tutorials &amp; Documentations","isPartOf":{"@id":"https:\/\/www.webhi.com\/how-to\/#website"},"datePublished":"2023-04-27T22:57:39+00:00","dateModified":"2023-04-27T22:57:41+00:00","description":"Learn how to install PostgreSQL in Ubuntu 18.04, 20.04, and 22.04 with this step-by-step guide. Our article provides a comprehensive overview of the installation process, including key commands and troubleshooting tips.","breadcrumb":{"@id":"https:\/\/www.webhi.com\/how-to\/install-postgresql-in-ubuntu-18-04-20-4-22-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webhi.com\/how-to\/install-postgresql-in-ubuntu-18-04-20-4-22-04\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.webhi.com\/how-to\/install-postgresql-in-ubuntu-18-04-20-4-22-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webhi.com\/how-to\/"},{"@type":"ListItem","position":2,"name":"Install PostgreSQL in Ubuntu 18.04\/ 20.4\/ 22.04"}]},{"@type":"WebSite","@id":"https:\/\/www.webhi.com\/how-to\/#website","url":"https:\/\/www.webhi.com\/how-to\/","name":"WebHi Tutorials &amp; Documentations","description":"System administration and knowledge base","publisher":{"@id":"https:\/\/www.webhi.com\/how-to\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webhi.com\/how-to\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.webhi.com\/how-to\/#organization","name":"WebHi Technology","url":"https:\/\/www.webhi.com\/how-to\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/","url":"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png","contentUrl":"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png","width":288,"height":95,"caption":"WebHi Technology"},"image":{"@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webhi.technology","https:\/\/twitter.com\/WebHiTechnology"]},{"@type":"Person","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54","name":"webhi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/image\/","url":"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1782424353","contentUrl":"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1782424353","caption":"webhi"},"sameAs":["https:\/\/www.webhi.com\/how-to"],"url":"https:\/\/www.webhi.com\/how-to\/author\/webhi\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts\/4812"}],"collection":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/comments?post=4812"}],"version-history":[{"count":5,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts\/4812\/revisions"}],"predecessor-version":[{"id":4855,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts\/4812\/revisions\/4855"}],"wp:attachment":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/media?parent=4812"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/categories?post=4812"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/tags?post=4812"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}