Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
PostgreSQL
(edit)
Revision as of 13:18, 13 February 2016
647 bytes added
,
13:18, 13 February 2016
no edit summary
Line 3:
Line 3:
sudo apt-get update
sudo apt-get update
sudo apt-get install postgresql postgresql-contrib
sudo apt-get install postgresql postgresql-contrib
+
+
== Remote access ==
+
1.- Modify pg_hba.conf to add Client Authentication Record<br />
+
To allow remote access edit: /etc/postgresql/9.4/main/pg_hba.conf
+
sudo -i -u postgres -H nano /etc/postgresql/9.4/main/pg_hba.conf
+
Example:
+
<nowiki> TYPE DATABASE USER CIDR-ADDRESS METHOD
+
+
# IPv4 local connections:
+
host all all 127.0.0.1/32 md5
+
# IPv6 local connections:
+
host all all ::1/128 md5</nowiki>
+
+
2.- Change the Listen Address in postgresql.conf
+
sudo -i -u postgres -H nano /var/lib/pgsql/data/postgresql.conf
+
set: listen_addresses = '*'
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version