Last active
August 29, 2015 14:09
-
-
Save d-bo/165e02335b7895b8d43f to your computer and use it in GitHub Desktop.
postgre92 freebsd setup snipp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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