CentOS5にPostgreSQL9.2.4をコンパイルしてインストールする
 CentOS5にPostgreSQL9.2.4をコンパイルしてインストールする
 
 インストールの確認が必要なパッケージ
 yum install readline-devel
 
 
 (作業)
 一般ユーザ権限:コンパイル
 ./configure --prefix=/opt/pgsql/postgresql-9.2.4
 make
 
 root権限:インストール
 make install
 
 cd /opt/pgsql/postgresql-9.2.4
 mkdir -p var/lib/pgsql/data
 chown -R postgres:postgres var/lib/pgsql
 chmod -R 700 var/lib/pgsql
 
 postgresユーザ権限:DBをイニシャライズ
 cd bin
 su postgres
 ./initdb /opt/pgsql/postgresql-9.2.4/var/lib/pgsql/data
 
 (起動スクリプトを拝借)
 cd /opt/pgsql/postgresql-9.2.4
 mkdir init.d
 cd init.d/
 cp /etc/init.d/postgresql ./postgresql9.2
 <ノート>
 postgresql9.2を色々編集しました:ロックファイルは/var/lock/subsys/postgresql9.2
 
 
 (起動)
 /opt/pgsql/postgresql-9.2.4/init.d/postgresql9.2 start
 
 
 (WCパッケージ化)
 cd /opt/pgsql/sbin
 ./gettar バージョン番号 [1|2]

インストールの確認が必要なパッケージ
yum install readline-devel


(作業)
一般ユーザ権限:コンパイル
./configure --prefix=/opt/pgsql/postgresql-9.2.4
make

root権限:インストール
make install

cd /opt/pgsql/postgresql-9.2.4
mkdir -p var/lib/pgsql/data
chown -R postgres:postgres var/lib/pgsql
chmod -R 700 var/lib/pgsql

postgresユーザ権限:DBをイニシャライズ
cd bin
su postgres
./initdb /opt/pgsql/postgresql-9.2.4/var/lib/pgsql/data

(起動スクリプトを拝借)
cd /opt/pgsql/postgresql-9.2.4
mkdir init.d
cd init.d/
cp /etc/init.d/postgresql ./postgresql9.2
<ノート>
postgresql9.2を色々編集しました:ロックファイルは/var/lock/subsys/postgresql9.2


(起動)
/opt/pgsql/postgresql-9.2.4/init.d/postgresql9.2 start


(WCパッケージ化)
cd /opt/pgsql/sbin
./gettar バージョン番号 [1|2]


トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS