Skip to content

Instantly share code, notes, and snippets.

@Irio
Created March 4, 2012 17:33
Show Gist options
  • Save Irio/1974023 to your computer and use it in GitHub Desktop.
Save Irio/1974023 to your computer and use it in GitHub Desktop.
Setup PostgreSQL on Fedora 16
# install server
[youruser@host]$ sudo yum install postgresql-server
# set password
[youruser@host]$ sudo passwd postgres
# create cluster
[youruser@host]$ sudo mkdir -p /usr/local/pgsql/
[youruser@host]$ sudo chown postgres /usr/local/pgsql/
[youruser@host]$ su postgres
[postgres@host]$ initdb -D /usr/local/pgsql/data
# start
[postgres@host]$ postgres -D /usr/local/pgsql/data &
# touché
[postgres@host]$ psql
psql (9.1.2)
Type "help" for help.
postgres=#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment