Uploaded by Stephen Efange

Intall PostgreSQL Community version 10

advertisement
Intall PostgreSQL Community version 10
https://www.postgresql.org/download/linux/redhat/
yum install
https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-centos10-10-2.noarch.rp
m -y
yum install postgresql10 postgresql10-server -y
/usr/pgsql-10/bin/postgresql-10-setup initdb
systemctl enable postgresql-10
systemctl start postgresql-10
systemctl status postgresql-10
ps -ef | grep -i postgres
ls -l /var/lib/pgsql/10/data/
[root@mafiscotech02 ~]# su - postgres
Last login: Sat Oct 13 01:37:53 EDT 2018 on pts/0
-bash-4.2$ psql postgres
psql (9.2.23, server 10.5)
WARNING: psql version 9.2, server version 10.0.
Some psql features might not work.
Type "help" for help.
postgres=#
postgres=# \du
postgres=# \l
postgres=# \quit
Download