動作確認ディストリビューション †PostgreSQL 8.3.5のインストール †以前は、ソースファイルを元に、自力でRPMを作ったりしてたけど、最近はPostgreSQLのRPM作成プロジェクトが立ち上がってるみたいですね。便利だ。
# wget http://yum.pgsqlrpms.org/8.3/redhat/rhel-4-i386/postgresql-8.3.5-1PGDG.rhel4.i386.rpm # wget http://yum.pgsqlrpms.org/8.3/redhat/rhel-4-i386/postgresql-server-8.3.5-1PGDG.rhel4.i386.rpm # wget http://yum.pgsqlrpms.org/8.3/redhat/rhel-4-i386/postgresql-devel-8.3.5-1PGDG.rhel4.i386.rpm # wget http://yum.pgsqlrpms.org/8.3/redhat/rhel-4-i386/postgresql-libs-8.3.5-1PGDG.rhel4.i386.rpm # wget http://yum.pgsqlrpms.org/8.3/redhat/rhel-4-i386/postgresql-docs-8.3.5-1PGDG.rhel4.i386.rpm インストール(RPMをダウンロードしたディレクトリにて) # rpm -ivh postgresql-* 警告: postgresql-8.3.5-1PGDG.rhel4.i386.rpm: V3 DSA signature: NOKEY, key ID 442df0f8 Preparing... ########################################### [100%] 1:postgresql-libs ########################################### [ 20%] 2:postgresql ########################################### [ 40%] 3:postgresql-devel ########################################### [ 60%] 4:postgresql-docs ########################################### [ 80%] 5:postgresql-server ########################################### [100%] PostgreSQLの自動起動設定 # chkconfig postgresql on # chkconfig --list postgresql postgresql 0:off 1:off 2:on 3:on 4:on 5:on 6:off DB初期化 # su - postgres $ initdb --no-locale -E UTF8 The files belonging to this database system will be owned by user "postgres". This user must also own the server process. The database cluster will be initialized with locale C. The default text search configuration will be set to "english". fixing permissions on existing directory /var/lib/pgsql/data ... ok creating subdirectories ... ok selecting default max_connections ... 100 selecting default shared_buffers/max_fsm_pages ... 24MB/153600 creating configuration files ... ok creating template1 database in /var/lib/pgsql/data/base/1 ... ok initializing pg_authid ... ok initializing dependencies ... ok creating system views ... ok loading system objects' descriptions ... ok creating conversions ... ok creating dictionaries ... ok setting privileges on built-in objects ... ok creating information schema ... ok vacuuming database template1 ... ok copying template1 to template0 ... ok copying template1 to postgres ... ok WARNING: enabling "trust" authentication for local connections You can change this by editing pg_hba.conf or using the -A option the next time you run initdb. Success. You can now start the database server using: postgres -D /var/lib/pgsql/data or pg_ctl -D /var/lib/pgsql/data -l logfile start $ exit PostgreSQLサービス起動 # service postgresql start postgresql サービスを開始中: [ OK ] PostgreSQLサービス確認 # netstat -at|grep postgres
|