LoginSignup
3
3

More than 5 years have passed since last update.

vagrantのCent6にpostgres9.2をインストールする

Last updated at Posted at 2015-08-25

勉強のため、PCにVirtualBox + Vagrantの環境でLinuxを用意した。
postgresql9.2を使いたかったのだが、標準で入っているパッケージが8.4だった。なので9.2を指定して入れる必要があるみたい。

1. postgresql9.2をyumのリポジトリに登録する

yum install http://yum.postgresql.org/9.2/redhat/rhel-6-x86_64/pgdg-centos92-9.2-6.noarch.rpm
※URLは公式から参照した。
/etc/yum.repos.dにpgdg-92-redhat.repoがあることを確認

2.postgresql9.2のインストール

yum install postgresql94-server postgresql94-contrib

3.データベースの初期化

service postgresql-9.2 initdb

4.postgresql起動

service postgresql-9.2 start

5.確認してみる

psql --version
psql (PostgreSQL) 9.2.13 と表示された!やった!

参考にしたサイト
CentOS6.6(x86_64)にPostgresql9.4をインストールする

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3