martes, 27 de octubre de 2020

SIGESP CONFIGURACION POSTGRESQL

Codificación en Postgres 8.4

GENERAMOS LAS LOCALES

dpkg-reconfigure locales

ESCOGEMOS 

es_ES@euro ISO-8859-15

DETENEMOS SERVIDOR DE POSTGRESQL

/etc/init.d/postgresql stop

renombrar o eliminar los directorios originales
rm /var/lib/postgresql/8.4/main/ -r
rm /etc/postgresql/8.4/main/ -r

CREANDO EL CLUSTER CON CODIFICACION 
es_ES@euro

pg_createcluster 8.4 main --locale=es_ES@euro
iniciar el servidor

/etc/init.d/postgresql start

COLOCAMOS CONTRASEÑA POSTGRES

su postgres
psql

ALTER USER postgres WITH PASSWORD '123456';
\q
exit






MODIFICAMOS LOS ARCHIVOS 

etc/postgresql/8.4/main/ pg_hba.conf y postgres.conf

pg_hba.conf

nano /etc/postgresql/8.4/main/pg_hba.conf

Database administrative login by UNIX sockets

local   all         postgres                          md5

# TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD

# "local" is for Unix domain socket connections only
local   all         all                               md5
# IPv4 local connections:
host    all         all         127.0.0.1/32          md5
# IPv6 local connections:
host    all         all         ::1/128               md5
host  all       all           192.999.0.0/0           md5

postgres.conf

nano /etc/postgresql/8.4/main/postgres.conf

listen_addresses = 'localhost' CAMBIO CON listen_addresses = '*'

REINICIAMOS POSTGRES
/etc/init.d/postgresql restart


No hay comentarios:

Publicar un comentario

SIGESP PRIMEROS PASOS

Como Crear una Cuenta de Usuario  Entrar en el Modulo Herramientas del Sistemas  --- Seguridad       ---  Definiciones             --- U...