ql tar.gz の展 9 開 # su - $ cd /usr/local/src/ $ tar xvzf ql tar.gz PostgreSQL(9.2.4) のインストール $ ls -l /usr/local/src/ drwxrwxr-x 月

Similar documents
1_postgis(2.2.1) のインストール No 概要 対象 ユーザ コマンド 確認 ( 確認コマンド等 ) 備考 # yum install gcc # gcc -v - 組み込み spec を使用しています COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/

1 1 CentOS Java JDK(JavaSE Development Kit)......

PostgreSQL

PostgreSQLによる データベースサーバ構築技法

A : kerl kerl Erlang/OTP Erlang/OTP 2 2 Elixir/Phoenix URL 2 PDF A.2 Bash macos.bash_profile exp

PostgreSQL 9.0 のレプリケーションを使ってみよう SRA OSS, Inc. 日本支社佐藤友章 2010/12/11 Copyright 2010 SRA OSS, Inc. Japan All rights reserved. 1

別紙 : 検証環境の構築手順 ( 章 ) 1. サーバ設定 1.1 IP アドレス設定 サーバは以下の 6 台を用いる pgpool-ii サーバ 2 台 DB サーバ 3 台 上位サーバ 1 台 OS は全サーバで CentOS 6.4 x86_64 とする pgpool-ii のサー

$ cmake --version $ make --version $ gcc --version 環境が無いあるいはバージョンが古い場合は yum などを用いて導入 最新化を行う 4. 圧縮ファイルを解凍する $ tar xzvf gromacs tar.gz 5. cmake を用

2_Boost(1.60.0) のインストール No 概要対象ユーザコマンド確認 ( 確認コマンド等 ) 備考 1 Boostのソースディレクトリ作成 2 boost_1_60_0.tar.gz の取得 # mkdir /usr/local/src/boost_1_60_0 # chown : /u

Microsoft Word - koutiku.doc

目次 1. 動作環境チェック 動作必要環境 Java のインストール Java のインストール Firebird のインストール Firebird のインストール Adobe Reader のインストール

unix.dvi

# mv httpd tar.gz /usr/local/src /usr/local/src # tar zxvf httpd tar.gz make #./configure # make # make install Apache # /usr/local/apac

RedHat OpenFOAM OpenFOAM ver 2.3 RedHat(RHEL)

CLUSTERPRO for Linux PostgreSQL HowTo

防災マップ作成システムの開発業務基本設計書

Introduction Purpose This training course demonstrates the use of the High-performance Embedded Workshop (HEW), a key tool for developing software for

HeartCore(PHP 版 ) インストール手順について説明いたします なお 本資料は 例として下記内容を前提として説明しております 環境情報 対象 OS: Linux ( ディストリビューション : Red Hat Enterprise Linux Server) APサーバ : Apache

HeartCoreインストールマニュアル(PHP版)

UNIX

HeartCoreインストールマニュアル

Appendix

テクニカルドキュメントのテンプレート

Lets移行プラットホーム

ServerView with Data ONTAP-v™ PowerChute® Network Shutdown 設定について

改訂履歴 版改訂日変更内容 /4/25 新規作成 ライセンス 本作品は CC-BY ライセンスによって許諾されています ライセンスの内容を知りたい方は でご確認ください 文書の内容 表記に関

PGECons技術ドキュメントテンプレート Ver.3

はじめに このドキュメントではftServerに関する障害調査を行う際に 必要となるログ データの取得方法を説明しています ログ データの取得には 初期解析用のデータの取得方法と 詳細な調査を行うときのデータ取得方法があります 特別な理由でOS 側のログが必要となった場合には RHELログの取得につ

ロードバランサー配下のシボレス IdP 環境設定に関する検証実験 2009 年 12 月 22 日国立情報学研究所学術ネットワーク研究開発センター山地一禎, 中村素典

PGECons技術ドキュメントテンプレート Ver.3

Microsoft Word - appli_OpenMX_install.docx

最も一般的な手法: ファイアウォールによってノード間の MPI 通信がブロックされた場合の対応方法

SLAMD導入手順

ExpressUpdate Agent インストレーションガイド

OpenAM 9.5 インストールガイド オープンソース ソリューション テクノロジ ( 株 ) 更新日 : 2013 年 7 月 19 日 リビジョン : 1.8

アプリケーションサーバ JBoss超入門

目次 1. はじめに 本文書の目的 前提条件 略語 事前準備 ホスト名の名前解決 Linux 版パッケージ システム要件 ソフトウェア要件 パッケージ構成

対応した JDBC ドライバ (postgresql jdbc4.jar) に変更します 1.OpenDolphin-2.3m\client\pom.xml の下線部分を変更 <version> jdbc41</version> <version> jd

untitled

POSTGRESQL 9.2 /POSTGIS (WINDOWS 版 ) 導入 設定手順書 (VER. 1) June 20, 2014

CLUSTERPRO MC StorageSaver istorage M シリーズ使用時の設定手順 (HP-UX 版 Linux 版 Windows 版 ) 2013(Apr) NEC Corporation istorage M シリーズを使用する場合の StorageSaver 設定手順 (H

ftServerでのログの取得方法の概要

橡環境設定.PDF

<Documents Title Here>

目次 PostgreSQL の特徴 インストール インストール方法 環境変数 データベースクラスタ 起動 停止 設定ファイル postgresql.conf ログ出力設定 環境設定 ロール作成 データベース作成 psql バックスラッシュコマンド バックアップ リストア PITR (Point In

Sybase on CLUSTERPRO for Linux HowTo

目次 1. はじめに x-servlet の SNMP エージェント設定... 3 ACL ファイルの作成... 3 start.bat の編集 サーバ ID によるサーバ再接続設定... 5 irule の作成... 5 Persistence Profile の作

システムパッケージリリース情報-Version5.0.0pre

DocuWide 2051/2051MF 補足説明書

はじめに PostgreSQL/PowerGres サポート & 保守サービス でサポート対象になっているサードパーティ製のソフトを紹介 pgfouine pgbadger( 今後サポート対象にする予定 ) PgFincore pg_reorg pg_rman pg_bulkload pg_stat

はじめに 1. 概要本書では SuitePRO V3 にて提供している迷惑メールフィルタのバージョンアップ手順について案内しています なお この手順につきましては 迷惑メールフィルタ機能について オンラインマニュアルの内容通りに設定されていることを前提条件とします

テクニカルドキュメントのテンプレート

Asterisk PBX 不正利用防止

Microsoft Word - Win-Outlook.docx

Red Hat Enterprise Linux 6 Portable SUSE Linux Enterprise Server 9 Portable SUSE Linux Enterprise Server 10 Portable SUSE Linux Enterprise Server 11 P

ソフトウェアエンジニアリング - 機能 #14

Microsoft Word - PrivateAccess_UM.docx

MENU 키를 누르면 아래의 화면이 나타납니다

OpenAM 13 インストールガイド

Oracle Application Server 10g(9

Oracle Database Clientクイック・インストレーション・ガイド, 10gリリース 1( ) for Linux x86-64

PHP4徹底攻略 改訂版

Helix Swarm2018.1アップグレード手順

3.2 Linux root vi(vim) vi emacs emacs 4 Linux Kernel Linux Git 4.1 Git Git Linux Linux Linus Fedora root yum install global(debian Ubuntu apt-get inst

MINI2440マニュアル

ServerView ESXi CIM Provider VMware vSphere ESXi 6.5 インストールガイド

Microsoft Word - 電源制御コマンドの設定について_UNIX_.doc

RouteMagic Controller RMC-MP200 / MP Version

Microsoft Word - PSB導入ガイド_ docx

untitled

ドライバインストールガイド

Rev.2 N 内蔵 RDX N 外付 RDX ファームウェアアップデート手順 RDX 装置をお買い上げいただきましてありがとうございます 本書は N 内蔵 RDX N 外付 RDX のファームウェアアップデート手順を記載しています 1. 概要

OSSTechドキュメント

Transcription:

PostgreSQL(9.2.4) のインストール No 概要 対象 ユーザ コマンド 確認 ( 確認コマンド等 ) 備考 # yum install gcc # gcc -v Using built-in specs. Target: x86_64-redhat-linux コンフィグオプション :../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --withbugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable- cxa_atexit --disable-libunwindexceptions 1 gccのインストール --enable-gnu-unique-object --enable-languages=c,c+ +,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enablelibgcj-multifile --enable-java-maintainer-mode --with-ecjjar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --withppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux スレッドモデル : posix gcc version 4.4.5 20110214 (Red Hat 4.4.5-6) (GCC) 2 makeのインストール # yum install make # make -v GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. これはフリーソフトウェアです. 利用許諾についてはソースをご覧ください. 商業性や特定の目的への適合性の如何に関わらず, 無保証です. This program built for x86_64-unknown-linux-gnu 3 zlibのインストール # yum install zlib zlib-devel # yum list zlib zlib-devel zlib.x86_64 zlib-devel.x86_64 1.2.3-27.el6 1.2.3-27.el6 GPL の利用が難しい場合は configure オプションに以下のオプションんを追記することで zlib を導入しないことが可能である この場合 pg_dump/pg_restore の圧縮アーカイブ機能が利用できなくなります --without-zlib 4 readlineのインストール 5 libxmlのインストール # yum install readline readline-devel # yum install libxml2 libxml2-devel # yum list readlin readline-devel readline.x86_64 6.0-3.el6 @anaconda-centos- 201106060106.x86_64/6.0 readline-devel.x86_64 6.0-3.el6 #yum list libxml2 libxml2-devel libxml2.x86_64 @updates libxml2-devel.x86_64 GPL の利用が難しい場合は configure オプションに以下のオプションを追記すること readline を導入しない事が可能である --without-readline 代替ソフトウェアとして libedit があるため configure オプションに以下のように追記することで導入可能である --with-libedit-preferred PostgreSQLの管理者ユーザの 6 作成 # useradd # passwd [ 新規パスワードを入力 ] # su - # su - $ プロンプトが $ に変更されていることを確認 PostgreSQLのソースディレクト 7 リの作成 # mkdir /usr/local/src/ql-9.2.4 # chown : /usr/local/src/ql-9.2.4 drwxrwxr-x 6 4096 2 月 24 08:11 2012 ql-9.2.4 ql-9.2.4.tar.gz の入 8 手 # cd /usr/local/src/ # wget http://ftp.ql.org/pub/source/v9.2.4/ql-9.2.4.tar.gz drwxr-xr-x 2 4096 4 月 5 12:19 2012 ql-9.2.4 -rw-r--r-- 1 20391547 4 月 5 12:22 2012 ql-9.2.4.tar.gz ページ 1

ql-9.2.4.tar.gz の展 9 開 # su - $ cd /usr/local/src/ $ tar xvzf ql-9.2.4.tar.gz PostgreSQL(9.2.4) のインストール $ ls -l /usr/local/src/ drwxrwxr-x 6 4096 2 月 24 08:11 2012 ql-9.2.4 -rw-r--r-- 1 20391547 4 月 5 12:22 2012 ql-9.2.4.tar.gz 10 configureスクリプトの実行 $ cd /usr/local/src/ql-9.2.4 $./configure --with-libxml $ ls -l /usr/local/src/ql-9.2.4/ -rw-r--r-- 1 1489 2 月 24 07:53 2012 Makefile Makefileが作成されていること 11 コンパイルの実行 $ gmake world PostgreSQL, contrib, and documentation successfully made. Ready to install. 12 コンパイルのチェック $ gmake check ============== shutting down postmaster ============== All 131 tests passed. 13 インストール 14 (~/.bash_profile) # cd /usr/local/src/ql-9.2.4 # gmake install-world PostgreSQL, contrib, and documentation installation complete. #chown : -R /usr/local/pgsql/ $ vi ~/.bash_profile ( 以下の値を追加 ) if [ -f ~/._profile ]; then. ~/._profile fi PATH=$PATH:$HOME/bin # ls -l /usr/local/ drwxr-xr-x 6 4096 4 月 5 11:41 2012 pgsql 15 (~/._profile) データベース格納ディレクトリ 16 の作成 $ vi ~/._profile =/usr/local/pgsql/bin:$path export MANPATH=/usr/local/pgsql/share/man:$PATH export LD_LIBRARY_PATH=/usr/local/pgsql/lib:$LD_LIBRARY_PATH export PGDATA=/home//data $ source ~/.bash_pr # mkdir /home//data/ # chown : /home//data/ $ echo $PGDATA /home//data # ls -l /usr/local/pgsql/ drwxr-xr-x 2 4096 4 月 20 19:10 2012 bin drwxr-xr-x 6 4096 4 月 20 19:10 2012 include drwxr-xr-x 3 4096 4 月 20 19:10 2012 lib drwxr-xr-x 8 4096 4 月 20 19:10 2012 ページ 2

PostgreSQL(9.2.4) のインストール 17 データベースクラスタの作成 18 ログ出力先ディレクトリの作成 アーカイブログ格納ディレクトリ 19 作成 PostgreSQLの設定ファイルの 20 変更 qlの起動スクリプトの 21 修正 $ initdb -E UTF-8 --pgdata=/home//data/ --no-locale The files belonging to this database system will be owned by user "". 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". Data page checksums are disabled. fixing permissions on existing directory /home//data... ok WARNING: enabling "trust" authentication for local connections You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb. Success. You can now start the database server using: -D /home//data/ or pg_ctl -D /home//data/ -l logfile start $ mkdir /home//data/pg_log $ mkdir /home//pg_archivelog $ vi /home//data/ql.conf ( 以下の値に変更 ) #archive_mode = off #archive_command = '' #logging_collector = off #listen_addresses = 'localhost' #log_line_prefix = '' #log_autovacuum_min_duration = -1 wal_level = minimal archive_mode = on archive_command = 'cp %p /home//pg_archivelog/%f' logging_collector = on listen_addresses = '0.0.0.0' log_line_prefix = '[%m][%d][%u][%e][%p] ' log_autovacuum_min_duration = 0 wal_level = archive $ vi /home//data/pg_hba.conf host all all 127.0.0.1/32 trust host all all [ 接続許可 IP アドレス ]/32 trust $ pg_ctl start server starting # cd /usr/local/src/ql-9.2.4/contrib/start-scripts/ # vi linux 以下を編集 PGDATA="/usr/local/pgsql/data" PGDATA="/home//data" # cp -rp linux ql # chown : ql # chmod 755 ql $ ls -l $PGDATA 合計 88 -rw-------. 1 4 11 月 21 10:27 2013 PG_VERSION drwx------. 5 4096 11 月 21 10:27 2013 base drwx------. 2 4096 11 月 21 10:27 2013 global drwx------. 2 4096 11 月 21 10:27 2013 pg_clog -rw-------. 1 4476 11 月 21 10:27 2013 pg_hba.conf -rw-------. 1 1636 11 月 21 10:27 2013 pg_ident.conf drwx------. 4 4096 11 月 21 10:27 2013 pg_multixact drwx------. 2 4096 11 月 21 10:27 2013 pg_notify drwx------. 2 4096 11 月 21 10:27 2013 pg_serial drwx------. 2 4096 11 月 21 10:27 2013 pg_snapshots drwx------. 2 4096 11 月 21 10:27 2013 pg_stat drwx------. 2 4096 11 月 21 10:27 2013 pg_stat_tmp drwx------. 2 4096 11 月 21 10:27 2013 pg_subtrans drwx------. 2 4096 11 月 21 10:27 2013 pg_tblspc drwx------. 2 4096 11 月 21 10:27 2013 pg_twophase drwx------. 3 4096 11 月 21 10:27 2013 pg_xlog -rw-------. 1 20286 11 月 21 10:27 2013 ql.conf $ pg_ctl status pg_ctl: server is running (PID: 29672) /usr/local/pgsql/bin/ $ ll /home//data/pg_log/ 合計 4 -rw------- 1 150 4 月 6 11:39 2012 ql- 2012-04-06_113905.log ( 動いていない時例 ) $ view ~/data/pg_log/ql-xxx.log LOG: end-of-line before authentication method CONTEXT: line 103 of configuration file "/home//data/pg_hba.conf" FATAL: could not load pg_hba.conf ( 設定ファイル pg_hba.conf 103 行目にエラー ) ql-9.2.4/contrib/start-scripts/ 合計 16 -rw-r--r-- 1 1529 2 月 24 07:53 2012 freebsd -rw-r--r-- 1 3017 6 月 8 14:12 2012 linux drwxrwxr-x 2 4096 2 月 24 08:08 2012 osx -rwxr-xrqlのサービス化 22 ( 自動起動設定 ) # cd /usr/local/src/ql-9.2.4/contrib/start-scripts/ # mv ql /etc/rc.d/init.d/ # chkconfig --add ql # chkconfig --list grep ql ql 0:off 1:off 2:on 3:on 4:on 5:on 6:off ページ 3

PostgreSQL(9.3.x) のインストール No 概要 対象 ユーザ コマンド 確認 ( 確認コマンド等 ) 備考 # yum install gcc # gcc -v Using built-in specs. Target: x86_64-redhat-linux コンフィグオプション :../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --withbugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable- cxa_atexit --disable-libunwindexceptions 1 gccのインストール --enable-gnu-unique-object --enable-languages=c,c+ +,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enablelibgcj-multifile --enable-java-maintainer-mode --with-ecjjar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --withppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux スレッドモデル : posix gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) 2 makeのインストール 3 zlibのインストール 4 readlineのインストール 5 libxmlのインストール # yum install make # make -v GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. これはフリーソフトウェアです. 利用許諾についてはソースをご覧ください. 商業性や特定の目的への適合性の如何に関わらず, 無保証です. This program built for x86_64-unknown-linux-gnu # yum install zlib zlib-devel # yum list zlib zlib-devel zlib.x86_64 zlib-devel.x86_64 # yum install readline readline-devel # yum list readline readline-devel readline.x86_64 readline-devel.x86_64 # yum install libxml2 libxml2-devel # yum list libxml2 libxml2-devel libxml2.x86_64 @updates libxml2-devel.x86_64 1.2.3-29.el6 1.2.3-29.el6 6.0-4.el6 6.0-4.el6 GPL の利用が難しい場合は configure オプションに以下のオプションんを追記することで zlib を導入しないことが可能である この場合 pg_dump/pg_restore の圧縮アーカイブ機能が利用できなくなります --without-zlib GPL の利用が難しい場合は configure オプションに以下のオプションを追記すること readline を導入しない事が可能である --without-readline 代替ソフトウェアとして libedit があるため configure オプションに以下のように追記することで導入可能である --with-libedit-preferred PostgreSQLの管理者ユーザの 6 作成 # useradd # passwd [ 新規パスワードを入力 ] # su - # su - $ プロンプトが $ に変更されていることを確認 PostgreSQLのソースディレクト 7 リの作成 # mkdir /usr/local/src/ql-9.3.x # chown : /usr/local/src/ql-9.3.x drwxr-xr-x. 2 4096 11 月 21 10:05 2013 ql-9.3.x 以下 本手順書における x には導入するマイナーバージョンを代入する ql-9.3.x.tar.gz の入 8 手 # cd /usr/local/src/ # wget http://ftp.ql.org/pub/source/v9.3.x/ql-9.3.x.tar.gz drwxr-xr-x. 2 4096 11 月 21 10:05 2013 ql-9.3.x -rw-r--r--. 1 22140691 9 月 3 05:59 2013 ql-9.3.x.tar.gz ql-9.3.x.tar.gz の展 9 開 $ cd /usr/local/src/ $ tar xvzf ql-9.3.x.tar.gz $ ls -l /usr/local/src/ drwxrwxr-x. 6 4096 9 月 3 05:59 2013 ql-9.3.x -rw-r--r--. 1 22140691 9 月 3 05:59 2013 ql-9.3.x.tar.gz ページ 4

PostgreSQL(9.3.x) のインストール 10 configureスクリプトの実行 $ cd /usr/local/src/ql-9.3.x $./configure --with-libxml $ ls -l /usr/local/src/ql-9.3.x/ -rw-rw-r--. 1 3767 11 月 21 10:12 2013 GNUmakefile Makefile が作成されていること --with-libxml は,pg_statsinfo で利用します 11 コンパイルの実行 12 コンパイルのチェック 13 インストール 14 (~/.bash_profile) 15 (~/._profile) データベース格納ディレクトリ 16 の作成 17 データベースクラスタの作成 18 ログ出力先ディレクトリの作成 アーカイブログ格納ディレクトリ 19 作成 $ gmake world PostgreSQL, contrib, and documentation successfully made. Ready to install. $ gmake check ============== shutting down postmaster ============== All 136 tests passed. $ su # cd /usr/local/src/ql-9.3.x # gmake install-world PostgreSQL, contrib, and documentation installation complete. # chown : -R /usr/local/pgsql/ $ vi ~/.bash_profile ( 以下の値を追加 ) if [ -f ~/._profile ]; then. ~/._profile fi PATH=$PATH:$HOME/bin $ vi ~/._profile =/usr/local/pgsql/bin:$path export MANPATH=/usr/local/pgsql/share/man:$PATH export LD_LIBRARY_PATH=/usr/local/pgsql/lib:$LD_LIBRARY_PATH export PGDATA=/home//data $ source ~/._profile # mkdir /home//data/ # chown : /home//data/ # su - $ initdb -E UTF-8 --pgdata=/home//data/ --no-locale The files belonging to this database system will be owned by user "". 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". Data page checksums are disabled. fixing permissions on existing directory /home//data... ok WARNING: enabling "trust" authentication for local connections You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb. Success. You can now start the database server using: -D /home//data/ or pg_ctl -D /home//data/ -l logfile start $ mkdir /home//data/pg_log $ mkdir /home//pg_archivelog # ls -l /usr/local/ drwxr-xr-x. 6 4096 11 月 21 10:22 2013 pgsql $ echo $PGDATA /home//data # ls -l /usr/local/pgsql/ 合計 16 drwxr-xr-x. 2 4096 11 月 21 10:22 2013 bin drwxr-xr-x. 6 4096 11 月 21 10:22 2013 include drwxr-xr-x. 4 4096 11 月 21 10:22 2013 lib drwxr-xr-x. 8 4096 11 月 2 $ ls -l $PGDATA 合計 88 -rw-------. 1 4 11 月 21 10:27 2013 PG_VERSION drwx------. 5 4096 11 月 21 10:27 2013 base drwx------. 2 4096 11 月 21 10:27 2013 global drwx------. 2 4096 11 月 21 10:27 2013 pg_clog -rw-------. 1 4476 11 月 21 10:27 2013 pg_hba.conf -rw-------. 1 1636 11 月 21 10:27 2013 pg_ident.conf drwx------. 4 4096 11 月 21 10:27 2013 pg_multixact drwx------. 2 4096 11 月 21 10:27 2013 pg_notify drwx------. 2 4096 11 月 21 10:27 2013 pg_serial drwx------. 2 4096 11 月 21 10:27 2013 pg_snapshots drwx------. 2 4096 11 月 21 10:27 2013 pg_stat drwx------. 2 4096 11 月 21 10:27 2013 pg_stat_tmp drwx------. 2 4096 11 月 21 10:27 2013 pg_subtrans drwx------. 2 4096 11 月 21 10:27 2013 pg_tblspc drwx------. 2 4096 11 月 21 10:27 2013 pg_twophase drwx------. 3 4096 11 月 21 10:27 2013 pg_xlog -rw-------. 1 20286 11 月 21 10:27 2013 ql.conf ページ 5

PostgreSQL(9.3.x) のインストール PostgreSQLの設定ファイルの 20 変更 qlの起動スクリプトの 21 修正 $ vi /home//data/ql.conf ( 以下の値に変更 ) #archive_mode = off #archive_command = '' #logging_collector = off #listen_addresses = 'localhost' #log_line_prefix = '' #log_autovacuum_min_duration = -1 wal_level = minimal archive_mode = on archive_command = 'cp %p /home//pg_archivelog/%f' logging_collector = on Listen_addresses = '0.0.0.0' log_line_prefix = '[%m][%d][%u][%e][%p] ' log_autovacuum_min_duration = 0 wal_level = archive $ vi /home//data/pg_hba.conf host all all 127.0.0.1/32 trust host all all 接続許可 IP アドレス /32 trust $ pg_ctl start server starting # cd /usr/local/src/ql-9.3.x/contrib/start-scripts/ # cp -rp linux ql # vi ql 以下を編集 PGDATA="/usr/local/pgsql/data" PGDATA="/home//data" $ pg_ctl status pg_ctl: server is running (PID: 29672) /usr/local/pgsql/bin/ $ ll /home//data/pg_log/ 合計 4 -rw------- 1 150 4 月 6 11:39 2012 ql- 2012-04-06_113905.log ql-9.3.x/contrib/start-scripts s/ 合計 16 -rw-r--r--. 1 1529 9 月 3 05:53 2013 freebsd -rw-r--r--. 1 3467 11 月 21 10:41 2013 linux drwxrwxr-x. 2 4096 9 月 3 05:55 2013 osx -rw ( 動いていない時例 ) $ view ~/data/pg_log/ql-xxx.log LOG: end-of-line before authentication method CONTEXT: line 103 of configuration file "/home//data/pg_hba.conf" FATAL: could not load pg_hba.conf ( 設定ファイル pg_hba.conf 103 行目にエラー ) qlのサービス化 22 ( 自動起動設定 ) # chown : ql # chmod 755 ql # cd /usr/local/src/ql-9.3.x/contrib/start-scripts/ # mv ql /etc/rc.d/init.d/ # chkconfig --add ql # chkconfig --list grep ql ql 0:off 1:off 2:on 3:on 4:on 5:on 6:off ページ 6