INSTALL POSTGRES
Da wiki.gienne.cloud.
Versione del 3 feb 2020 alle 14:33 di Admin (Discussione | contributi)
Aggancio repository in base al sistema operativo:
yum install https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-oraclelinux96-9.6-3.noarch.rpm -y yum install https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-redhat96-9.6-3.noarch.rpm -y yum install https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-centos96-9.6-3.noarch.rpm -y
https://www.postgresql.org/download/linux/redhat/
yum install yum install postgresql96-server postgresql96-contrib -y
echo "pathmunge /usr/pgsql-9.6/bin" > /etc/profile.d/postgres.sh
/usr/pgsql-9.6/bin/postgresql96-setup initdb
systemctl start postgresql-9.6 systemctl enable postgresql-9.6
su - postgres createuser -s admin
Da Psql:
ALTER USER admin WITH PASSWORD '****';
Nel file pg_hba modificare es.:
host all admin 10.245.71.0/24 password host all admin 10.245.72.0/24 password
Modificare il file postgresql.conf e attivare l'ascolto sull'interfaccia prescelta o su tutte le interfacce:
es.:
listen_addresses = '*'
systemctl stop postgresql-9.6 systemctl start postgresql-9.6