JIRA Home Directory の設定

The JIRA Home Directory contains key data that help define how JIRA works. You must have a JIRA home directory specified for your JIRA instance before you can start it. This document describes how to specify the location of the JIRA home directory for your JIRA instance.

1 つの Jira インスタンスに 1 つの Jira ホーム

1 つの JIRA インスタンスがもつ JIRA Home Directory は 1 つだけです。JIRA インストールが複数ある場合、各インストールに対して JIRA Home Directory を 1 つセットアップする必要があります。JIRA Home Directory が作成されると、1 つの JIRA インストールのみが使用できるようにその JIRA Home Directory のルートにロックが配置されます。

Jira ホームの指定で必要なのは、ルート ディレクトリの場所だけです。サブ ディレクトリは、Jira の起動時、または、Jira で特定のサブ ディレクトリを必要とする機能を使用したときに、自動的に作成されます。

Jira ホームの設定方法

There are a few methods available for specifying the location of your JIRA Home Directory in JIRA. However, please be aware of the notes below before your specify this location.

推奨方法

The recommended methods for specifying the location of your JIRA Home Directory in JIRA are to:

  • Use the JIRA Configuration Tool to change the location of your JIRA Home Directory.
    (info) The JIRA Configuration Tool is not available in JIRA WAR distributions.
  • Edit the jira-application.properties file and set the value of the 'jira.home' property to the desired location for your JIRA Home Directory (this location should be something different than the application directory, or you may run into problems later). If you are specifying this location's path on Windows, use double back-slashes ("\") between subdirectories. For example, X:\\path\\to\\JIRA\‌\Home.
    (info)If you define an UNC path in Microsoft Windows, be sure to double escape the leading backslash: \\\\machinename\\path\\to\\JIRA\\home
    (info) See the JIRA Installation Directory page to find where this file is located.
  • Set an environment variable named JIRA_HOME in your operating system whose value is the location of your JIRA Home Directory. To do this:
    • Windows の場合は、次のいずれかを実行してください
      • Windows ユーザー インターフェイス(一般的に「マイコンピュータ」または「コンピュータ」)からこの環境変数を設定します。
      • コマンド プロンプト画面で、以下のコマンドを入力(自分の JIRA Home パスを使用する)した後、コマンド プロンプトから JIRA を実行します。
        • set JIRA_HOME=X:\path\to\JIRA\Home
          (warning) Please set your JIRA_HOME  environment variable value using this format, where:
          • X は Jira ホーム ディレクトリが格納されているドライブの文字
          • イコール ("=") の前後にスペースは不要
      • JIRA の起動に使用したバッチ ファイルで上記のコマンドを設定します。
    • Linux/Solaris では、以下のいずれかを実行してください。
      • JIRA を起動する前にシェル/コンソールプロンプトで以下のコマンドを実行する(ご自身の JIRA ホームディレクトリを指定して)
        • export JIRA_HOME=/path/to/jira/home
      • JIRA を起動するときに使うスクリプトに上記のコマンドを追加する

(warning) Please Note: If you have specified different values for a 'jira.home' property in the jira-application.properties file and a JIRA_HOME environment variable, the value of the JIRA_HOME environment variable takes precedence.

代替方法

Alternatively, you can specify the location of your JIRA Home Directory as property within your application server:

  • Configure a new web context property called 'jira.home' for your application server. To do this, you need to define this web context property inside a <parameter/> element (as a child of the <context/> element) in your server.xml file (or jira.xml file for JIRA WAR).
    (info) The server.xml file is located within the conf subdirectory of your JIRA Installation Directory and for JIRA WAR, the jira.xml file is typically located within the conf/Catalina/localhost subdirectory of the Apache Tomcat installation running JIRA:

    <Context ...>
    ...
      <Parameter name="jira.home" value="c:/jira/home"/>
    ...
    </Context>
    

(warning) Please Note: A 'jira.home' web context property defined in your application server overrides the value of the 'jira.home' property defined in your jira-application.properties file. However, a JIRA_HOME environment variable defining your JIRA Home Directory will override either of these 'jira.home' values.

Jira ホームに指定すべき場所

Jira ホーム ディレクトリにはディスク上の任意の場所を指定できます。絶対パスを指定するようにします。

Please note that you cannot use the same JIRA home directory for multiple instances of JIRA. We recommend locating your JIRA Home Directory completely independently of the JIRA Installation Directory (i.e. not nesting one within the other) as this will minimize information being lost during major operations (e.g. backing up and restoring instances).

Jira ホームの変更方法

JIRA ホーム ディレクトリを変更するには、

  1. Jira ホームの設定方法」 (上記) で説明されている方法を 1 つ選び、Jira ホームに新しい場所を設定します。
  2. Jira を再起動します。

JIRA Home Directory に格納されているもの

The following page describes the data stored in the JIRA Home Directory: JIRA Home Directory.

注意

最終更新日 2014 年 9 月 16 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.