PostgreSQLのログ取得設定

PostgreSQLでログを取得するためには、postgresql.confファイルでlog_statementとlog_min_error_statementを設定します。 例えば、全てのSQL実行と警告レベル以上のエラーを記録するには以下のように設定します。

 log_statement = 'all' log_min_error_statement = warning 

上記設定後、再起動すると有効となります。

 su -c "/usr/local/pgsql/bin/pg_ctl -w restart" - postgres waiting...

Mailman構築2 ユーザ追加,Webサーバ

3)メールユーザー追加方法

通常のユーザ追加

SSHによるリモート接続を不可にしたい場合は useraddコマンドに-sオプションを付加する。

# useradd -s /sbin/nologin test01 # passwd test01   Changing password for user test01.   New UNIX password:   Retype new UNIX password:   passwd: all authentication tokens updated successfully. 

...