--------
スポンサーサイト
2009-05-18
2008-09-14
postgresql の セットアップ手順(うちのサバ)
■linuxインストール
・ネットワーク経由でパッケージを落としてインストールする。
・netinst.soを落としてisoイメージでCD−ROMに焼く。
・URLを選択しosのディレクトリを入力する
(例:http://ftp.jaist.ac.jp/pub/Linux/Fedora/releases/9/Fedora/i386/os/)
・IPはV6をはずして、あとはV4はマニュアルで設定する。
■ postgresqlのmakeとinstall
・『http://www.postgresql.org/download/』
$ tar xvfz postgresql-8.2.5.tar.gz
$ ./configure --prefix=/****/*
$ make
$ make install
■ postgresqlの設定
・bash_profileにPATHを通す。
$ chown -R pgsql
$ chgrp -R pgsql
$ initdb --encoding=UTF-8 -D databaseファイルのおき場所
■ postgresqlのネットワーク設定
$ vi postgresql.conf
$ # listen_addresses = '*'
↓
$ listen_addresses = '*'
$ # port = 5432
↓
$ port = 5432
$ vi pg_hba.conf
$ host all all 192.168.0.2 255.255.255.255 trust
■ firewallの設定
5432を解除
・ネットワーク経由でパッケージを落としてインストールする。
・netinst.soを落としてisoイメージでCD−ROMに焼く。
・URLを選択しosのディレクトリを入力する
(例:http://ftp.jaist.ac.jp/pub/Linux/Fedora/releases/9/Fedora/i386/os/)
・IPはV6をはずして、あとはV4はマニュアルで設定する。
■ postgresqlのmakeとinstall
・『http://www.postgresql.org/download/』
$ tar xvfz postgresql-8.2.5.tar.gz
$ ./configure --prefix=/****/*
$ make
$ make install
■ postgresqlの設定
・bash_profileにPATHを通す。
$ chown -R pgsql
$ chgrp -R pgsql
$ initdb --encoding=UTF-8 -D databaseファイルのおき場所
■ postgresqlのネットワーク設定
$ vi postgresql.conf
$ # listen_addresses = '*'
↓
$ listen_addresses = '*'
$ # port = 5432
↓
$ port = 5432
$ vi pg_hba.conf
$ host all all 192.168.0.2 255.255.255.255 trust
■ firewallの設定
5432を解除
2008-07-24
2008-06-05
postfix2
■postfix インストール

useradd -r postfix
groupadd -r postdrop

tar xpvfz /somewhere/postfix-2.1.1.tar.gz
cd postfix-2.1.1
make -f Makefile.init makefiles
make
su
make install
newaliases

/etc/rc.d/init.d/sendmail stop
chkconfig sendmail off

/etc/rc.d/init.d/postfix start
/etc/rc.d/init.d/postfix stop
フリーマーケット
フリマ

useradd -r postfix
groupadd -r postdrop

tar xpvfz /somewhere/postfix-2.1.1.tar.gz
cd postfix-2.1.1
make -f Makefile.init makefiles
make
su
make install
newaliases

/etc/rc.d/init.d/sendmail stop
chkconfig sendmail off

/etc/rc.d/init.d/postfix start
/etc/rc.d/init.d/postfix stop
フリーマーケット
フリマ
theme : インターネットサービス
genre : コンピュータ
2008-05-15
Powered by FC2 Blog
Copyright © 暇な会社員のブログ All Rights Reserved.


