Postgresql install

From wikinotes
Revision as of 13:00, 15 September 2019 by Will (talk | contribs) (Created page with "= FreeBSD = <blockquote> <syntaxhighlight lang="bash"> sudo pkg install postgresql96-server echo "postgresql_enable=\"YES\"" >> /etc/rc.conf sudo service postgresql initdb su...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

FreeBSD

sudo pkg install postgresql96-server

echo "postgresql_enable=\"YES\"" >> /etc/rc.conf
sudo service postgresql initdb
sudo service postgresql start


WARNING:

If you are running postgresql in a jail, you'll need to enable sysvipc

# /etc/jail.conf
jailname {
	...
	allow.sysvipc;
}

Ubuntu

sudo apt-get install postgresql