su -Add exclude to /etc/yum.repos.d/fedora.repo file [fedora] section:
[fedora]
...
exclude=postgresql*[updates]
...
exclude=postgresql*rpm -Uvh http://yum.postgresql.org/9.2/fedora/fedora-18-x86_64/pgdg-fedora92-9.2-6.noarch.rpmPara Fedora 19 rpm -Uvh http://yum.postgresql.org/9.2/fedora/fedora-19-x86_64/pgdg-fedora92-9.2-6.noarch.rpm Ésta es una forma de llamar el comando, pero se puede personalizar segun sean las caracteristicas de su Sistema Operativo y Arquitectura, obteniendo la información de: http://yum.postgresql.org/9.2/fedora/
yum install postgresql postgresql-server postgresql-contribInitialize Cluster with initdb Command
Here is multiple alternatives howto do this (like service postgresql-9.x initdb, /etc/init.d/postgresql-9.x initdb) and postgresql-setup initdb, so that’s why I use here universal PostgreSQL initdb method, which should work with Fedora 18, CentOS/Red Hat (RHEL)/Scientific Linux (SL) 6.3/5.8:
su - postgres -c /usr/pgsql-9.2/bin/initdbOpen /var/lib/pgsql/9.2/data/postgresql.conf file, and add/uncomment/modify following:
listen_addresses = '*'
port = 5432listen_addresses = 'localhost'
port = 5432listen_addresses = '192.1.2.33'
port = 5432# Local networks
host all all xx.xx.xx.xx/xx md5
# Example
host all all 10.20.4.0/24 md5
# Example 2
host test testuser 127.0.0.1/32 md5# Local networks
host all all xx.xx.xx.xx/xx md5
# Example
host all all 10.20.4.0/24 md5
# Example 2
host test testuser 127.0.0.1/32 md5Despues del siguiente bloque, veremos llamar a postgresql-9.2.service pero ¿De donde obtenemos el nombre del servicio?, para obtenerlo acceder a la siguiente direccion:
]# pwd
/usr/lib/systemd/system
]# ls pos*
postgresql-9.2.serviceEntonces ejecutar:
## Start PostgreSQL 9.2 ##
systemctl start postgresql-9.2.service
## Start PostgreSQL 9.2 on every boot ##
systemctl enable postgresql-9.2.serviceCreate Test Database and Create New UserChange to postgres user
su postgrescreatedb testpsql testCREATE ROLE testuser WITH SUPERUSER LOGIN PASSWORD 'test';psql -h localhost -U testuser testyum -y install pgadmin3
Echa un vistazo a una herramienta gratuita - Valentina Studio. Producto asombroso! OMI es el mejor gestor de PostgreSQL, para todas las plataformas. http://www.valentina-db.com/en/valentina-studio-overview
ReplyDeleteSuena bastante bien, he revisado la liga y me interesa por el Módulo SQL Editor. Gracias por el dato, lo hecho andar y aqui mismo lo mencionaré. Un Saludo.
Delete