Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ericboehs/334817 to your computer and use it in GitHub Desktop.

Select an option

Save ericboehs/334817 to your computer and use it in GitHub Desktop.
sudo su -
echo PGDATA=/var/lib/pgsql/data >> /etc/sysconfig/pgsql/postgresql # Specify where the databases are stored
service postgresql initdb # Initialize the database
chkconfig postgresql on # Set postgresql to start up on boot
service postgresql start # Start postgresql service
exit # Drop out of root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment