2012年1月30日月曜日

PostgreSQL91のインストールメモ

postgresql84を入れていたテスト用の仮想マシンなので削除。

/etc/yum.repos.d/CentOS-Base.repo の[base]と[updates]のセクションの最後に以下を追加。

exclude=postgresql*


パッケージを取得
# wget http://yum.pgrpms.org/reporpms/9.1/pgdg-centos91-9.1-4.noarch.rpm
登録
# rpm -i pgdg-centos91-9.1-4.noarch.rpm
インストール
# yum postgresql91
起動設定
# chkconfig postgresql-9.1 on
初期化
# service postgresql-9.1 initdb
起動
# service posgresql-9.1 start


コマンド関係が、/usr/pgsql-9.1/bin/以下になっているので注意。

ストリーミング・レプリケーションとかしてみたいなぁ。

0 件のコメント: