{"id":1618,"date":"2016-05-15T23:32:00","date_gmt":"2016-05-16T04:32:00","guid":{"rendered":"http:\/\/linuxitos.com\/main\/instalar-postgresql-9-5-en-fedora-24\/"},"modified":"2016-05-15T23:32:00","modified_gmt":"2016-05-16T04:32:00","slug":"instalar-postgresql-9-5-en-fedora-24","status":"publish","type":"post","link":"https:\/\/linuxitos.com\/main\/instalar-postgresql-9-5-en-fedora-24\/","title":{"rendered":"Instalar Postgresql 9.5 en Fedora 24"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left;\">\n<div style=\"clear: both; text-align: center;\"><\/div>\n<div style=\"clear: both; text-align: center;\"><\/div>\n<div style=\"clear: both; text-align: justify;\"><\/div>\n<h2>Instalaci\u00f3n de Postgresql 9.5 y pgAdmin en Fedora 24 <\/h2>\n<p><a href=\"https:\/\/1.bp.blogspot.com\/-nVlHzyL-Psc\/VwcMILaW5AI\/AAAAAAAABxI\/vqyKbt0klg8fu0Ux9Ge8P59Su_FSNPoSQ\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-04-07%2B20-40-21.png\" style=\"clear: left; float: left; margin-bottom: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"358\" src=\"https:\/\/1.bp.blogspot.com\/-nVlHzyL-Psc\/VwcMILaW5AI\/AAAAAAAABxI\/vqyKbt0klg8fu0Ux9Ge8P59Su_FSNPoSQ\/s640\/Captura%2Bde%2Bpantalla%2Bde%2B2016-04-07%2B20-40-21.png\" width=\"640\" \/><\/a>En la versi\u00f3n 24 de fedora, Postgresql 9.5, ya es la versi\u00f3n default, por lo tanto no es necesario agregar repositorios adicionales.<\/p>\n<p>1.- Iniciando con:<\/p>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"background-color: transparent;\"><span style=\"color: white;\">su -<\/span><\/span><\/pre>\n<p>2.-&nbsp; Instalar el respositorio oficial para la nueva versi\u00f3n:<\/p>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"background-color: transparent;\"><span style=\"color: white;\">dnf install postgresql-server postgresql pgadmin3 postgresql postgresql-server postgresql-contrib<\/span><\/span><\/pre>\n<p>3.- Iniciar initdb.<\/p>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"background-color: transparent;\"><span style=\"color: white;\">\/usr\/bin\/postgresql-setup --initdb --unit postgresql<\/span><\/span><\/pre>\n<p>4.- Iniciar postgresql<\/p>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"color: white;\">#Iniciar postgresql<br \/>systemctl start postgresql<\/span><\/pre>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"color: white;\">#Indicar que inicie postgresql con el SO<\/span><span style=\"color: white;\"><br \/>systemctl enable postgresql<\/span><\/pre>\n<p>5.- Una vez terminado ingresamos:<\/p>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"background-color: transparent;\"><span style=\"color: white;\">su - postgres<\/span><\/span><\/pre>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"background-color: transparent;\"><span style=\"color: white;\">#Teclear lo siguiente:<br \/>$ psql<br \/><\/span><\/span><span style=\"color: white;\">psql (9.5.0)<br \/>Type \"help\" for help.<br \/>#Y mostrar\u00e1 la siguiente l\u00ednea<br \/>postgres=#<\/span><\/pre>\n<p>6.- Crear una contrase\u00f1a para el usuario de postgresql:<\/p>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"color: white;\">postgres=# password postgres<\/span><\/pre>\n<p>7.- Configurar archivo autenticaci\u00f3n MD5 para los usuarios en postgresql:<br \/><span style=\"color: #222222; font-family: &quot;verdana&quot; , &quot;geneva&quot; , sans-serif; font-size: 15px; line-height: 26px; text-align: justify;\">Modificar el archivo <\/span><strong style=\"box-sizing: border-box; color: #222222; font-family: Verdana, Geneva, sans-serif; font-size: 15px; line-height: 26px; text-align: justify;\">\/var\/lib\/pgsql\/data\/pg_hba.conf<\/strong><span style=\"color: #222222; font-family: &quot;verdana&quot; , &quot;geneva&quot; , sans-serif; font-size: 15px; line-height: 26px; text-align: justify;\">:<\/span><\/p>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"color: white;\">gedit \/var\/lib\/pgsql\/data\/pg_hba.conf<\/span><\/pre>\n<p><span style=\"color: #222222; font-family: &quot;verdana&quot; , &quot;geneva&quot; , sans-serif; font-size: 15px; line-height: 26px; text-align: justify;\">&nbsp;<\/span><\/p>\n<div><span style=\"color: #222222; font-family: &quot;verdana&quot; , &quot;geneva&quot; , sans-serif; font-size: 15px; line-height: 26px; text-align: justify;\">Copiar y reemplazar las siguientes l\u00edneas sobre las mismas en el archivo abierto:<\/span><\/div>\n<div>\n<pre style=\"background: url(&quot;assets\/shadow.png&quot;) 50% 100% repeat-x rgb(245, 245, 245); border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-shadow: rgb(204, 204, 204) 0px 0px 3px; box-sizing: border-box; color: #333333; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 13px; font-stretch: normal; line-height: 1.42857; margin-bottom: 10px; overflow: auto; padding: 9.5px; tab-size: 4; text-shadow: rgb(255, 255, 255) 0px 1px 0px; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><pre style=\"background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #222222; font-family: monospace, monospace; font-size: 15px; line-height: 26px; margin-top: 24px; overflow: auto; padding: 4px 10px;\">[...]<br \/># TYPE&nbsp; DATABASE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; USER&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ADDRESS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; METHOD<br \/># \"local\" is for Unix domain socket connections only<br \/>local&nbsp;&nbsp; all&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; all&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; md5<br \/># IPv4 local connections:<br \/>host&nbsp;&nbsp;&nbsp; all&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; all&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 127.0.0.1\/32&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; md5<br \/>host&nbsp;&nbsp;&nbsp; all&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; all&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 192.168.1.0\/24&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; md5<br \/># IPv6 local connections:<br \/>host&nbsp;&nbsp;&nbsp; all&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; all&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ::1\/128&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; md5<br \/>[...]<\/pre>\n<\/div>\n<div><span style=\"color: #222222; font-family: &quot;verdana&quot; , &quot;geneva&quot; , sans-serif; font-size: 15px; line-height: 26px; text-align: justify;\"><b>Ahora es necesario reiniciar el servicio para aplicar cambios:<\/b><\/span><\/div>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"color: white;\">systemctl restart postgresql<\/span><\/pre>\n<p>Configurar las conexiones&nbsp; de TCP\/IP, modificando el archivo <strong style=\"box-sizing: border-box; color: #222222; font-family: Verdana, Geneva, sans-serif; font-size: 15px; line-height: 26px; text-align: justify;\">\/var\/lib\/pgsq\/data\/postgresql.conf<\/strong><span style=\"color: #222222; font-family: &quot;verdana&quot; , &quot;geneva&quot; , sans-serif; font-size: 15px; line-height: 26px; text-align: justify;\"><\/span>:<\/p>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"color: white;\">gedit \/var\/lib\/pgsql\/data\/postgresql.conf<\/span><\/pre>\n<p>Y modificar las siguiente l\u00edneas:<\/p>\n<pre style=\"background: url(&quot;assets\/shadow.png&quot;) 50% 100% repeat-x rgb(245, 245, 245); border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-shadow: rgb(204, 204, 204) 0px 0px 3px; box-sizing: border-box; color: #333333; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 13px; font-stretch: normal; line-height: 1.42857; margin-bottom: 10px; overflow: auto; padding: 9.5px; tab-size: 4; text-shadow: rgb(255, 255, 255) 0px 1px 0px; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\">[...]<br \/>#listen_addresses = 'localhost'<br \/>[...]<br \/>#port = 5432<br \/>[...]<\/pre>\n<p>De tal modo que queden as\u00ed:<br \/><span style=\"color: #222222; font-family: &quot;verdana&quot; , &quot;geneva&quot; , sans-serif; font-size: 15px; line-height: 26px; text-align: justify;\"><\/span> <\/p>\n<div>\n<pre style=\"background: url(&quot;assets\/shadow.png&quot;) 50% 100% repeat-x rgb(245, 245, 245); border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-shadow: rgb(204, 204, 204) 0px 0px 3px; box-sizing: border-box; color: #333333; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 13px; font-stretch: normal; line-height: 1.42857; margin-bottom: 10px; overflow: auto; padding: 9.5px; tab-size: 4; text-shadow: rgb(255, 255, 255) 0px 1px 0px; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\">listen_addresses = '*'<br \/>port = 5432<\/pre>\n<\/div>\n<p>Y ahora reiniciar el servicio:<\/p>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"color: white;\">systemctl restart postgresql<\/span><\/pre>\n<p>Ahora ya has terminado. Iniciar PGADMINIII para agregar servidores y las bases de datos.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Instalaci\u00f3n de Postgresql 9.5 y pgAdmin en Fedora 24 En la versi\u00f3n 24 de fedora, Postgresql 9.5, ya es la versi\u00f3n default, por lo tanto no es necesario agregar repositorios adicionales. 1.- Iniciando con: su &#8211; 2.-&nbsp; Instalar el respositorio oficial para la nueva versi\u00f3n: dnf install postgresql-server postgresql pgadmin3 postgresql postgresql-server postgresql-contrib 3.- Iniciar [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[673,468,670,671,672,122],"tags":[],"class_list":["post-1618","post","type-post","status-publish","format-standard","hentry","category-admin","category-fedora-24","category-instalar-postgresql-en-fedora-24","category-install-postgresql-in-fedora-24","category-pgadmin-iii","category-postgresql"],"_links":{"self":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1618","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/comments?post=1618"}],"version-history":[{"count":0,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1618\/revisions"}],"wp:attachment":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/media?parent=1618"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/categories?post=1618"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/tags?post=1618"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}