Skip to content

Instantly share code, notes, and snippets.

@d-bo
Last active August 29, 2015 14:09
Show Gist options
  • Save d-bo/165e02335b7895b8d43f to your computer and use it in GitHub Desktop.
Save d-bo/165e02335b7895b8d43f to your computer and use it in GitHub Desktop.
postgre92 freebsd setup snipp
# freebsd-10
# php55, postgresql92-client
# search and install postgresql92-server
root# pkg search postgre
root# pkg install ...
root# passwd pgsql // set password
root# su pgsql
root# vi /usr/local/pgsql/data/postgresql.conf // listen_addresses='*' for remote connection (dev mode)
pgsql# initdb -D /usr/local/pgsql/data
root# echo 'setenv PGDATA /usr/local/pgsql/data' >> .cshrc // easy start, stop ...
root# echo 'postgresql_enable="YES"' >> /etc/rc.conf // autoload
root# echo 'php_fpm_enable="YES"' >> /etc/rc.conf // autoload
pgsql# pg_ctl start -l /usr/local/pgsql/serverlog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment