Tuesday, June 13, 2017

Linux: Install PostgreSQL on CentOS 7

1. Update the system.


yum update


2. Install PostgreSQL.

yum install postgresql-server postgresql-contrib



3. PostgreSQL initial configuration.

systemctl enable postgresql



postgresql-setup initdb
systemctl start postgresql


4. Test PostgreSQL.

su - postgres
psql
\l


No comments:

Post a Comment