Postgresql を centOS with vagrant で動かす

yum install

1
2
3
% uname -a
Linux vagrant-centos65.vagrantup.com 2.6.32-431.3.1.el6.x86_64 #1 SMP Fri Jan 3 21:39:27 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
% yum install -y postgresql postgresql-server postgresql-devel

postgres のパスワードを設定

1
2
3
4
% sudo passwd postgres
Changing password for user postgres.
New password:
Retype new password:

config

1
2
3
4
5
# cd /var/lib/pgsql/data
# vi postgresql.conf
...
# vi pg_hba.conf
host all postgres trust