Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #2225 from bramwelt/fix-bug-984436-postgres-docs

Fixes bug 984436 - Add Ubuntu instructions to Postgres setup docs
  • Loading branch information...
commit 50666572e87f2a5aabdf8a0cab2e698675da835a 2 parents 631dfa0 + c96c09a
@lonnen lonnen authored
Showing with 23 additions and 8 deletions.
  1. +23 −8 docs/installation/postgres.rst
View
31 docs/installation/postgres.rst
@@ -38,23 +38,38 @@ http://www.postgresql.org/docs/9.3/static/auth-pg-hba-conf.html
At minimum, you'll want to allow md5 passwords to be used over the
local network connections.
-As the *root* user, edit /var/lib/pgsql/9.3/data/pg_hba.conf:
+As the *root* user, edit pg_hba.conf.
+
+RHEL/CentOS:
+::
+ /var/lib/pgsql/9.3/data/pg_hba.conf
+
+Ubuntu:
::
- # IPv4 local connections:
- host all all 127.0.0.1/32 md5
- # IPv6 local connections:
- host all all ::1/128 md5
+ /etc/postgresql/9.3/main/pg_hba.conf
+
+And change the local connections from *trust* to *md5*.
+
+::
+
+ # IPv4 local connections:
+ host all all 127.0.0.1/32 md5
+ # IPv6 local connections:
+ host all all ::1/128 md5
NOTE Make sure to read and understand the pg_hba.conf documentation before
running a production server.
-Restart PostgreSQL for the changes to take effect
+As the *root* user, restart PostgreSQL for the changes to take effect.
-On Linux (Debian/Redhat):
-As the *root* user:
+On RHEL/CentOS:
::
service postgresql-9.3 restart
+On Ubuntu:
+::
+ service postgresql restart
+
Or on Mac OS X:
::
pg_ctl -D /usr/local/pgsql/data/ restart
Please sign in to comment.
Something went wrong with that request. Please try again.