{"id":3800,"date":"2018-10-15T11:12:20","date_gmt":"2018-10-15T11:12:20","guid":{"rendered":"https:\/\/dbtut.com\/?p=3800"},"modified":"2019-11-07T07:13:35","modified_gmt":"2019-11-07T07:13:35","slug":"how-to-install-postgresql-on-centos-redhat","status":"publish","type":"post","link":"https:\/\/dbtut.com\/index.php\/2018\/10\/15\/how-to-install-postgresql-on-centos-redhat\/","title":{"rendered":"How To Install PostgreSQL On centos\/redhat"},"content":{"rendered":"\n<p>First we go to https:\/\/yum.postgresql.org and into PostgreSQL where we will download the repo. Since we will install PostgreSQL 10 in our example, we will click on 10.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-13394 aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2018\/10\/Ads\u0131z-7.png\" alt=\"\" width=\"636\" height=\"434\" \/><\/p>\n<p>Then right click on \u201cCentos 7 \u2013 x86_64\u201d in the screen below and we click copy link location.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-13395 aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2018\/10\/Ads\u0131z-8.png\" alt=\"\" width=\"719\" height=\"440\" \/><\/p>\n<p>We connect to our Centos server via ssh and become root using the below command.<\/p>\n<pre class=\"lang:default decode:true\">su root<\/pre>\n<p>Then write yum install and right click and paste the link that we copied after leaving a space. Run the command to download the repo to the server.<\/p>\n<p>Example Code;<\/p>\n<pre class=\"lang:default decode:true \">yum install https:\/\/download.postgresql.org\/pub\/repos\/yum\/10\/redhat\/rhel-7-x86_64\/pgdg-centos10-10-2.noarch.rpm<\/pre>\n<p>Then, go to the folder which our package is downloaded with the command below to confirm that our package has been downloaded.<\/p>\n<pre class=\"lang:default decode:true\">cd \/etc\/yum.repos.d<\/pre>\n<p>List the files in the folder with the command below.<\/p>\n<pre class=\"lang:default decode:true\">ll or ls -al<\/pre>\n<p>You need to see the package named pgdg-10-centos.repo in the list. Then install PostgreSQL 10 by using the repo we downloaded.<\/p>\n<pre class=\"lang:default decode:true\">yum install --disablerepo=\"*\" --enablerepo=pgdg-10-centos.repo postgresql10.x86_64 postgresql10-contrib.x86_64 postgresql10-devel.x86_64 postgresql10-libs.x86_64 postgresql10-server.x86_64<\/pre>\n<p>Go to the root directory with the command below.(or the directory you want to create postgresql directories)<\/p>\n<pre class=\"lang:default decode:true\"> cd \/<\/pre>\n<p>Here, you need to define two separate directories for the data and log files. Since this is an example, I will create two files in a single directory.<\/p>\n<p>In our example, we create two folders in the directory named Postgres under the Home directory with the following commands.<\/p>\n<pre class=\"lang:default decode:true \">mkdir pg_data\nmkdir pg_xlog<\/pre>\n<p>Then we use the command <code>cd ..<\/code> to go back to the parent directory and assign the postgres user as the owner for each file and folder created under the postgres directory and the postgres directory with the following command.<\/p>\n<pre class=\"lang:default decode:true \">chown -R postgres:postgres \/postgres<\/pre>\n<p>We then specify these folders with the -D and -X parameters when performing initdb.<\/p>\n<p>pg_data (data directory -D)<\/p>\n<p>pg_xlog (wal directory X)<\/p>\n<p>Use the following command to configure authorizations in the root directory.<\/p>\n<pre class=\"lang:default decode:true\">chown -R postgres \/postgres\nchmod -R 700 \/postgres<\/pre>\n<h2>Create a Password for PostgreSQL<\/h2>\n<p>Create a password for postgres user with the below command.<\/p>\n<pre class=\"lang:default decode:true\">passwd postgres<\/pre>\n<p>Change the use as postgres with the command below.<\/p>\n<pre class=\"lang:default decode:true\">su - postgres<\/pre>\n<p>Go to the executable files directory with the following command to perform initdb.<\/p>\n<pre class=\"lang:default decode:true\">cd \/usr\/pgsql-10\/bin<\/pre>\n<h2>initdb<\/h2>\n<p>Perform initdb with the following command.<\/p>\n<pre class=\"lang:default decode:true\">\/usr\/pgsql-10\/bin \/initdb -D \/postgres\/pg_data\/ -X \/postgres\/pg_xlog\/<\/pre>\n<p>Use the command below to create public and private keys.(<strong>ssh connectivity<\/strong>), We&#8217;ll be able to connect to the other server without a password between two postgresql server by copying these keys to the standby server. Run this command and press enter a few times.<\/p>\n<pre class=\"lang:default decode:true \">ssh-keygen -t rsa<\/pre>\n<p>Then copy the public key to the standby server with the command below.<\/p>\n<p>192.168.1.29 is the IP of the standby server.<\/p>\n<pre class=\"lang:default decode:true\">ssh-copy-id 192.168.1.29<\/pre>\n<p>It will ask the password of postgres user. If you enter the password, you will get an error. Because the password was not created on the standby server.<\/p>\n<p>Once you have created the password in the standby server, you should run the command again.<\/p>\n<p>Then we will test to see if we can connect without password between two postgresql.<\/p>\n<pre class=\"lang:default decode:true\">ssh postgres@192.168.1.29<\/pre>\n<p>If the connection is not established, turn off the firewall with the following command on the standby server.\u00a0<\/p>\n<h3>Stop Firewalld<\/h3>\n<pre class=\"lang:default decode:true\">service firewalld stop<\/pre>\n<p>In addition, you need to disable selinux.<\/p>\n<h3>Disable selinux<\/h3>\n<p>When we are root, we open the file with the command below and change enforcing to disable.<\/p>\n<pre class=\"lang:default decode:true\">vim \/etc\/selinux\/config<\/pre>\n<h3>Start PostgreSQL with pg_ctl<\/h3>\n<p>Then, start the postgresql with pg_ctl with the help of the following command.<\/p>\n<pre class=\"lang:default decode:true\">\/usr\/pgsql-10\/bin\/pg_ctl -D \/postgres\/pg_data\/ start<\/pre>\n<p>I recommend that you start service with the systemctl command while you are the root user. First, we fix the path of the PostgreSQL service. To do this, open the service using the command below.<\/p>\n<pre class=\"lang:default decode:true\">vi \/lib\/systemd\/system\/postgresql-10.service<\/pre>\n<p>Find the Environment line and change it as follows.<\/p>\n<pre class=\"lang:default decode:true\">Environment=PGDATA=\/postgres\/pg_data\/<\/pre>\n<h3>Enable, Reload and Start PostgreSQL Service<\/h3>\n<p>Then enable and start the service with the command below. If you do not enable the postgres service, it does not start automatically after server restart.<\/p>\n<pre class=\"lang:default decode:true\">systemctl enable postgresql-10.service\nsystemctl start postgresql-10.service\nsystemctl reload postgresql-10.service<\/pre>\n<p>Then switch to the postgres user and connect to postgres using the below command.<\/p>\n<pre class=\"lang:default decode:true \">su - postgres\npsql<\/pre>\n<p>If you want to install postgresql replication you can read one of the below articles.<\/p>\n<p>&#8220;<a href=\"https:\/\/dbtut.com\/index.php\/2019\/11\/05\/how-to-install-postgresql-replication-with-replication-slots\/\" target=\"_blank\" rel=\"noopener noreferrer\">How To Install PostgreSQL Replication with Replication Slots<\/a>&#8220;<\/p>\n<p>&#8220;<a href=\"https:\/\/dbtut.com\/index.php\/2018\/06\/11\/how-to-install-postgresql-replication-on-centos\/\" target=\"_blank\" rel=\"noopener noreferrer\">How To Install PostgreSQL Replication On Centos<\/a>&#8220;<\/p>\n\n<div class=\"pvc_clear\"><\/div><p id=\"pvc_stats_3800\" class=\"pvc_stats all  \" data-element-id=\"3800\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/dbtut.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p><div class=\"pvc_clear\"><\/div>","protected":false},"excerpt":{"rendered":"<p>First we go to https:\/\/yum.postgresql.org and into PostgreSQL where we will download the repo. Since we will install PostgreSQL 10 in our example, we will click on 10. Then right click on \u201cCentos 7 \u2013 x86_64\u201d in the screen below and we click copy link location. We connect to our Centos server via ssh and &hellip;<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_3800\" class=\"pvc_stats all  \" data-element-id=\"3800\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/dbtut.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":366,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[299,5],"tags":[5228,5235,5236,5229,196,5230,5237,5232,5231,5233,5238,210,1366,5234,2657],"class_list":["post-3800","post","type-post","status-publish","format-standard","","category-linux","category-postgres","tag-create-a-password-for-postgresql","tag-disable-selinux","tag-enable-and-start-postgresql-service","tag-how-to-perform-initdb","tag-initdb","tag-initdb-command","tag-nable","tag-private-keys","tag-public-and-private-keys","tag-public-keys","tag-reload-and-start-postgresql-service","tag-ssh-connectivity","tag-ssh-keygen","tag-start-postgresql-with-pg_ctl","tag-stop-firewalld"],"aioseo_notices":[],"a3_pvc":{"activated":true,"total_views":770,"today_views":0},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How To Install PostgreSQL On centos\/redhat - Database Tutorials<\/title>\n<meta name=\"description\" content=\"How To Install PostgreSQL On centos\/redhat\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/dbtut.com\/index.php\/2018\/10\/15\/how-to-install-postgresql-on-centos-redhat\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Install PostgreSQL On centos\/redhat - Database Tutorials\" \/>\n<meta property=\"og:description\" content=\"How To Install PostgreSQL On centos\/redhat\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dbtut.com\/index.php\/2018\/10\/15\/how-to-install-postgresql-on-centos-redhat\/\" \/>\n<meta property=\"og:site_name\" content=\"Database Tutorials\" \/>\n<meta property=\"article:published_time\" content=\"2018-10-15T11:12:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-11-07T07:13:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/dbtut.com\/wp-content\/uploads\/2018\/10\/Ads\u0131z-7.png\" \/>\n<meta name=\"author\" content=\"Faruk Erdem\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Faruk Erdem\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/10\/15\/how-to-install-postgresql-on-centos-redhat\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/10\/15\/how-to-install-postgresql-on-centos-redhat\/\"},\"author\":{\"name\":\"Faruk Erdem\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/a7dfc5684c116e536b4e93ee214ccbfb\"},\"headline\":\"How To Install PostgreSQL On centos\/redhat\",\"datePublished\":\"2018-10-15T11:12:20+00:00\",\"dateModified\":\"2019-11-07T07:13:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/10\/15\/how-to-install-postgresql-on-centos-redhat\/\"},\"wordCount\":646,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/dbtut.com\/#organization\"},\"keywords\":[\"Create a Password for PostgreSQL\",\"Disable selinux\",\"Enable and Start PostgreSQL Service\",\"how to perform initdb\",\"initdb\",\"initdb command\",\"nable\",\"private keys\",\"public and private keys\",\"public keys\",\"Reload and Start PostgreSQL Service\",\"ssh connectivity\",\"ssh-keygen\",\"Start PostgreSQL with pg_ctl\",\"Stop firewalld\"],\"articleSection\":[\"Linux\",\"PostgreSQL\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/dbtut.com\/index.php\/2018\/10\/15\/how-to-install-postgresql-on-centos-redhat\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/10\/15\/how-to-install-postgresql-on-centos-redhat\/\",\"url\":\"https:\/\/dbtut.com\/index.php\/2018\/10\/15\/how-to-install-postgresql-on-centos-redhat\/\",\"name\":\"How To Install PostgreSQL On centos\/redhat - Database Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/dbtut.com\/#website\"},\"datePublished\":\"2018-10-15T11:12:20+00:00\",\"dateModified\":\"2019-11-07T07:13:35+00:00\",\"description\":\"How To Install PostgreSQL On centos\/redhat\",\"breadcrumb\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/10\/15\/how-to-install-postgresql-on-centos-redhat\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dbtut.com\/index.php\/2018\/10\/15\/how-to-install-postgresql-on-centos-redhat\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/10\/15\/how-to-install-postgresql-on-centos-redhat\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/dbtut.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Install PostgreSQL On centos\/redhat\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dbtut.com\/#website\",\"url\":\"https:\/\/dbtut.com\/\",\"name\":\"Database Tutorials\",\"description\":\"MSSQL, Oracle, PostgreSQL, MySQL, MariaDB, DB2, Sybase, Teradata, Big Data, NOSQL, MongoDB, Couchbase, Cassandra, Windows, Linux\",\"publisher\":{\"@id\":\"https:\/\/dbtut.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dbtut.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/dbtut.com\/#organization\",\"name\":\"dbtut\",\"url\":\"https:\/\/dbtut.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg\",\"contentUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg\",\"width\":223,\"height\":36,\"caption\":\"dbtut\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/a7dfc5684c116e536b4e93ee214ccbfb\",\"name\":\"Faruk Erdem\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ad1e61fb5a7c9a590e765f7cad8f2dc8332090f1ceb9a5ee2aa95c69213f0c50?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ad1e61fb5a7c9a590e765f7cad8f2dc8332090f1ceb9a5ee2aa95c69213f0c50?s=96&d=mm&r=g\",\"caption\":\"Faruk Erdem\"},\"url\":\"https:\/\/dbtut.com\/index.php\/author\/farukerdem\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Install PostgreSQL On centos\/redhat - Database Tutorials","description":"How To Install PostgreSQL On centos\/redhat","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:\/\/dbtut.com\/index.php\/2018\/10\/15\/how-to-install-postgresql-on-centos-redhat\/","og_locale":"en_US","og_type":"article","og_title":"How To Install PostgreSQL On centos\/redhat - Database Tutorials","og_description":"How To Install PostgreSQL On centos\/redhat","og_url":"https:\/\/dbtut.com\/index.php\/2018\/10\/15\/how-to-install-postgresql-on-centos-redhat\/","og_site_name":"Database Tutorials","article_published_time":"2018-10-15T11:12:20+00:00","article_modified_time":"2019-11-07T07:13:35+00:00","og_image":[{"url":"https:\/\/dbtut.com\/wp-content\/uploads\/2018\/10\/Ads\u0131z-7.png","type":"","width":"","height":""}],"author":"Faruk Erdem","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Faruk Erdem","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/dbtut.com\/index.php\/2018\/10\/15\/how-to-install-postgresql-on-centos-redhat\/#article","isPartOf":{"@id":"https:\/\/dbtut.com\/index.php\/2018\/10\/15\/how-to-install-postgresql-on-centos-redhat\/"},"author":{"name":"Faruk Erdem","@id":"https:\/\/dbtut.com\/#\/schema\/person\/a7dfc5684c116e536b4e93ee214ccbfb"},"headline":"How To Install PostgreSQL On centos\/redhat","datePublished":"2018-10-15T11:12:20+00:00","dateModified":"2019-11-07T07:13:35+00:00","mainEntityOfPage":{"@id":"https:\/\/dbtut.com\/index.php\/2018\/10\/15\/how-to-install-postgresql-on-centos-redhat\/"},"wordCount":646,"commentCount":0,"publisher":{"@id":"https:\/\/dbtut.com\/#organization"},"keywords":["Create a Password for PostgreSQL","Disable selinux","Enable and Start PostgreSQL Service","how to perform initdb","initdb","initdb command","nable","private keys","public and private keys","public keys","Reload and Start PostgreSQL Service","ssh connectivity","ssh-keygen","Start PostgreSQL with pg_ctl","Stop firewalld"],"articleSection":["Linux","PostgreSQL"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/dbtut.com\/index.php\/2018\/10\/15\/how-to-install-postgresql-on-centos-redhat\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/dbtut.com\/index.php\/2018\/10\/15\/how-to-install-postgresql-on-centos-redhat\/","url":"https:\/\/dbtut.com\/index.php\/2018\/10\/15\/how-to-install-postgresql-on-centos-redhat\/","name":"How To Install PostgreSQL On centos\/redhat - Database Tutorials","isPartOf":{"@id":"https:\/\/dbtut.com\/#website"},"datePublished":"2018-10-15T11:12:20+00:00","dateModified":"2019-11-07T07:13:35+00:00","description":"How To Install PostgreSQL On centos\/redhat","breadcrumb":{"@id":"https:\/\/dbtut.com\/index.php\/2018\/10\/15\/how-to-install-postgresql-on-centos-redhat\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dbtut.com\/index.php\/2018\/10\/15\/how-to-install-postgresql-on-centos-redhat\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/dbtut.com\/index.php\/2018\/10\/15\/how-to-install-postgresql-on-centos-redhat\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dbtut.com\/"},{"@type":"ListItem","position":2,"name":"How To Install PostgreSQL On centos\/redhat"}]},{"@type":"WebSite","@id":"https:\/\/dbtut.com\/#website","url":"https:\/\/dbtut.com\/","name":"Database Tutorials","description":"MSSQL, Oracle, PostgreSQL, MySQL, MariaDB, DB2, Sybase, Teradata, Big Data, NOSQL, MongoDB, Couchbase, Cassandra, Windows, Linux","publisher":{"@id":"https:\/\/dbtut.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dbtut.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/dbtut.com\/#organization","name":"dbtut","url":"https:\/\/dbtut.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/#\/schema\/logo\/image\/","url":"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg","contentUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg","width":223,"height":36,"caption":"dbtut"},"image":{"@id":"https:\/\/dbtut.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/dbtut.com\/#\/schema\/person\/a7dfc5684c116e536b4e93ee214ccbfb","name":"Faruk Erdem","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ad1e61fb5a7c9a590e765f7cad8f2dc8332090f1ceb9a5ee2aa95c69213f0c50?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ad1e61fb5a7c9a590e765f7cad8f2dc8332090f1ceb9a5ee2aa95c69213f0c50?s=96&d=mm&r=g","caption":"Faruk Erdem"},"url":"https:\/\/dbtut.com\/index.php\/author\/farukerdem\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts\/3800","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/users\/366"}],"replies":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/comments?post=3800"}],"version-history":[{"count":0,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts\/3800\/revisions"}],"wp:attachment":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/media?parent=3800"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/categories?post=3800"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/tags?post=3800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}