• I posted to know-the-world.com

    [FreeBSD] PostgreSQLのインストール

    FreeBSD7.0にPostgreSQL8.2.9をインストールします

    基本的にはportsでインストールを行い、 インストール後に表示される指示に従えば きちんと起動させることができると思います。

    Code:su cd /usr/ports/databases/postgresql82-server make configure make install vim /etc/rc.conf

    以下を追加

    postgres:\ :lang=en_US.UTF-8:\ :setenv=LC_COLLATE=C:\ :tc=default:

    Code:cap_mkdb /etc/login.conf vim /etc/rc.conf

    以下を追加 postgresql_enable="YES” postgresql_class="postgres”

    Code:/usr/local/etc/rc.d/postgresql initdb /usr/local/etc/rc.d/postgresql start

    topコマンドなどでpgsqlが起動しているかを確認

    pgsqlというユーザが作成されているのでpgsqlでログイン。 Code:psql -l

    でデータベースの一覧を表示。Original post blogged on b2evolution.

    • Tags:
    • DB

    September 17 2008, 12:16pm | Comments | [ original_link ]


blog comments powered by Disqus