PostgresSQL9.1.2の設定 in CentOS5.7

Feb 21, 2012
AD:

基本設定部分

[php]
$ vi /var/lib/pgsql/9.1/data/.conf
#listen_addresses = ‘localhost’

listen_addresses = ‘*’
#port = 5432

port = 5432

ログの名前
log_filename = ‘postgresql-%Y-%m-%d_%H%M.log’
ログのローテーション
log_rotation_age = 1d
ログのサイズ
log_rotation_size = 2MB
同名のファイルが存在する時は上書きする。ローテーション用。
log_truncate_on_rotation = on
ログのレベル
log_min_error_statement = error
[/php]

ログの細かい内容はこちらを参照してください。
http://lets.postgresql.jp/documents/technical/log_setting

セキュリティ設定部分

[php]
$ vi /var/lib/pgsql/9.1/data/pg_hba.conf
ローカル接続の許可
local all all peer
外部からの接続の設定
host all all 123.123.123.123/32(接続元のIP) password
[/php]

Related posts

AD:

No Comments, Comment or Ping

Reply to “PostgresSQL9.1.2の設定 in CentOS5.7”

You must be logged in to post a comment.

Search Keyword

Meta

face Ayumi Mizoshiri
WEB developer

FacebookPage

Popular Posts

Sorry. No data so far.

ARCHIVES