legacy-knowledge-base
公開されました Sep. 10, 2025

Postgres 9にLiferay Portalをセットアップする。

written-by

Justin Choi

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

この記事はレガシー記事です。 Liferay製品の旧バージョンにも適用されます。 記事のメンテナンスは終了していますが、情報はまだ通用する可能性があります。

今回は、PostgreSQLでデータベースを作成し、Liferayバンドルがそれに接続できるように設定する方法を説明します。 PostgresSQLがまだインストールされていない場合は、こちらから関連ファイルをダウンロードしてください: http://www.postgresql.org/download/windows/


詳細な設定方法については、こちらをご覧ください: 実行 & ネイティブWindowsでのPostgreSQLのインストール

解像度

データベースのセットアップ

  1. クリックスタート-> PostgreSQL 9.0-> pgAdmin III
  2. 左側のオブジェクトブラウザーで、「PostgreSQL 9.0(localhost:5432)」サーバーをダブルクリックする。
  3. パスワードを要求された場合は、Postgresのインストール時にパスワードを入力してください。
  4. オブジェクトブラウザーで、"データベース "を右クリックし、"新規データベース "を選択する
  5. データベースの名前を選択し、他はデフォルトのままにしておきます。 OK]をクリックします。

Liferayのインストールとデータベースの接続

  1. portal-ext.propertiesを作成します。 次のように入力します:

    jdbc.default.driverClassName=org.postgresql.Driver
    jdbc.default.url=jdbc:postgresql://{IP Address}:5432/${database name}
    jdbc.default.username=postgres
    jdbc.default.password=${password}

Liferay は PostgresSQL データベースに Liferay データを投入する必要があります。 コンソールには、データベースエンジンがPostgresであることが表示されているはずです。

did-this-article-resolve-your-issue

legacy-knowledge-base