• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to Install PostgreSQL 11 on CentOS 7.6

  • 00:32 rpm -q centos-release
  • 00:49 yum install https://yum.postgresql.org/11/redhat/rhel-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
  • 01:15 yum install postgresql11-server
  • 01:42 /usr/pgsql-11/bin/postgresql-11-setup initdb
  • 02:17 systemctl start postgresql-11.service
  • 02:33 systemctl enable postgresql-11.service
  • 02:52 sudo -u postgres psql
5724

Installation of PostgreSQL 11 on Centos 7.6

PostgreSQL 11 Released. PostgreSQL is an open source object-relational,highly scalable,SQL-compliant database management system.PostgreSQL is developed at the University of California at Berkeley Computer Science Department. This tutorial covers the method to install PostgreSQL 11 on CentOS 7.6.

Installation

Check the centos version by using the following command

[root@linuxhelp ~]# rpm -q centos-release
centos-release-7-6.1810.2.el7.centos.x86_64

Need to configure the PostgreSQL repository in your system by using the following command

 [root@linuxhelp ~]# yum install https://yum.postgresql.org/11/redhat/rhel-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
BDB2053 Freeing read locks for locker 0x3d0: 17545/140054075111232
BDB2053 Freeing read locks for locker 0x3d5: 17545/140054075111232
Loaded plugins: fastestmirror, langpacks
pgdg-redhat-repo-latest.noarch.rpm                                           | 5.6 kB  00:00:00     
Examining /var/tmp/yum-root-7eiWGV/pgdg-redhat-repo-latest.noarch.rpm: pgdg-redhat-repo-42.0-4.noarch
Marking /var/tmp/yum-root-7eiWGV/pgdg-redhat-repo-latest.noarch.rpm to be installed
.
.
.
  Installing : pgdg-redhat-repo-42.0-4.noarch                                                   1/1 
  Verifying  : pgdg-redhat-repo-42.0-4.noarch                                                   1/1 

Installed:
  pgdg-redhat-repo.noarch 0:42.0-4                                                                  

Complete!

Install postgresql 11 on by using the following command

[root@linuxhelp ~]# yum install postgresql11-server
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: centos.mirrors.estointernet.in
* extras: centos.mirrors.estointernet.in
* updates: centos.mirrors.estointernet.in
pgdg10                                                                       | 3.6 kB  00:00:00     
pgdg11                                                                       | 3.6 kB  00:00:00     
pgdg94                                                                       | 3.6 kB  00:00:00     
pgdg95                                                                       | 3.6 kB  00:00:00     
pgdg96                                                                       | 3.6 kB  00:00:00     
(1/10): pgdg11/7/x86_64/group_gz                                             |  245 B  00:00:01     
(2/10): pgdg94/7/x86_64/group_gz                                             |  247 B  00:00:01     
(3/10): pgdg95/7/x86_64/group_gz                                             |  249 B  00:00:00     
(4/10): pgdg10/7/x86_64/group_gz                                             |  245 B  00:00:01     
.
.
.
Installed:
 postgresql11-server.x86_64 0:11.3-1PGDG.rhel7                                                     

Dependency Installed:
 postgresql11.x86_64 0:11.3-1PGDG.rhel7         postgresql11-libs.x86_64 0:11.3-1PGDG.rhel7        

Complete!

Need to initialize the PostgreSQL instance

[root@linuxhelp ~]# /usr/pgsql-11/bin/postgresql-11-setup initdb
Initializing database ... OK

Start the postgresql service by using the following command

[root@linuxhelp ~]# systemctl start postgresql-11.service

Enable the postgresql service by using the following command

[root@linuxhelp ~]# systemctl enable postgresql-11.service
Created symlink from /etc/systemd/system/multi-user.target.wants/postgresql-11.service to /usr/lib/systemd/system/postgresql-11.service.

Enter into the postgresql by using the following command

 [root@linuxhelp ~]# sudo -u postgres psql
could not change directory to "/root": Permission denied
psql (11.3)
Type "help" for help.
Create a password for user 
postgres=# \password postgres
Enter new password: 
Enter it again: 


postgres=# \q

With this the method of installation of PostgreSQL 11 on Centos 7.6

Tags:
jacob
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

How do I change the sort ordering of textual data in PostgreSQL?

A

PostgreSQL sorts textual data according to the ordering that is defined by the current locale, which is selected during initdb.

Q

How does PostgreSQL use CPU resources?

A

The PostgreSQL server is process-based (not threaded). Each database session connects to a single PostgreSQL operating system (OS) process. Multiple sessions are automatically spread across all available CPUs by the OS.

Q

How do I control connections from other hosts on PostgreSQL?

A

PostgreSQL only allows connections from the local machine using Unix domain sockets or TCP/IP connections. Other machines will not be able to connect unless you modify listen_addresses in the postgresql.conf file, enable host-based authentication by modifying the $PGDATA/pg_hba.conf file, and restart.

Q

Why phpPgAdmin ask me to re-enter login information for every page I access on PostgreSQL?

A

You most certainly have a problem with your PHP sessions. Make sure:

your browser accept cookies if your session ID relies on them

PHP has write access to the path set in the parameter “session.save_path” of your php.ini

Q

What happened to the database dump feature in phpPgAdmin on PostgreSQL?

A

You need to configure phpPgAdmin (in the config.inc.php file) to point to the location of the pg_dump and pg_dumpall utilities on your server. Once you have done that, the database export feature will appear.

Related Tutorials in How to Install PostgreSQL 11 on CentOS 7.6

Related Tutorials in How to Install PostgreSQL 11 on CentOS 7.6

How To Install AnyDesk on Centos 7
How To Install AnyDesk on Centos 7
Apr 2, 2018
How to install Tiki Wiki CMS Groupware on CentOS 7
How to install Tiki Wiki CMS Groupware on CentOS 7
May 31, 2018
How to install PHP ImageMagick on CentOS 7
How to install PHP ImageMagick on CentOS 7
Nov 4, 2017
How to Upgrade and Downgrade the PHP Versions on CentOS 7.6
How to Upgrade and Downgrade the PHP Versions on CentOS 7.6
Jun 4, 2019
How to install Apache from Source Code on CentOS 7
How to install Apache from Source Code on CentOS 7
Oct 21, 2017
How to enable or disable repositories in CentOS
How to enable or disable repositories in CentOS
Mar 28, 2018
How to install AWStats on CentOS 7
How to install AWStats on CentOS 7
Dec 8, 2017
How to install Apache JMeter in CentOS 7
How to install Apache JMeter in CentOS 7
Mar 24, 2017

Related Forums in How to Install PostgreSQL 11 on CentOS 7.6

Related Forums in How to Install PostgreSQL 11 on CentOS 7.6

CentOS
connor class=
How To Completely Remove Apache package On CentOS 7.6
May 14, 2019
CentOS
ceriaimmaculate class=
setfacl : command not found
Jan 3, 2018
CentOS
mason class=
Error getting authority: Error initializing authority: Could not connect: No such file or directory (g-io-error-quark, 1)
Nov 20, 2018
CentOS
landon class=
Command to find SNMP Version
May 28, 2018
CentOS
arjitharon class=
cannot start minio service help
Mar 10, 2018
Apache tomcat
AadrikaAnshu class=
Cannot find ./catalina.sh The file is absent or does not have execute permission This file is needed to run this program
Jun 17, 2019
gitlab
caden class=
Insufficient space in download directory /var/cache/yum/x86_64/6/base/packages
Jul 22, 2019
OpenVAS
frank class=
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was 14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"
Dec 20, 2018

Related News in How to Install PostgreSQL 11 on CentOS 7.6

Related News in How to Install PostgreSQL 11 on CentOS 7.6

Amazon Web Services offers Aurora Cloud DB accordant with PostgreSQL
Amazon Web Services offers Aurora Cloud DB accordant with PostgreSQL
Oct 27, 2017
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Owen ?
How to add SSH key to my Gitlab account

I need to add the SSH key in my gitlab account. How to do so ????

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.