23maverick23
4/5/2015 - 1:30 AM

From http://www.postgresql.org/docs/9.4/interactive/server-start.html

# create a database
$ initdb -D /usr/local/pgsql/data

# start the server in foreground
$ postgres -D /usr/local/pgsql/data

# or, start the server in the background
$ postgres -D /usr/local/pgsql/data >logfile 2>&1 &