- https://www.postgresql.org/download/linux/redhat/
- Select version : 11
- Select Platform : Redhat Enterprise
- Select Archtecture : x86_64
yum install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpmyum install postgresql11yum install postgresql11-serverdefault db install
/usr/pgsql-11/bin/postgresql-11-setup initdb |
- change access control
[root@localhost data]# pwd |
# TYPE DATABASE USER ADDRESS METHOD |
[root@localhost data]# vi postgresql.conf |
#------------------------------------------------------------------------------ |
systemctl enable postgresql-11 |
[root@localhost data]# firewall-cmd --permantent --zone=public --add-port=5432/tcp |
- change
postgrepassword
[root@localhost data]# su - postgres |