Installing JIRA applications on Linux from Archive File

このページの内容

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

In this guide we'll run you through installing a JIRA application in a production environment, with an external database, manually using a tar.gz file.

この方法では、インストールプロセスをユーザーが最大限制御できます。

Jira をインストールするその他の方法: 

  • 評価版 - 無料トライアルをすぐに利用できます。
  • インストーラー – Linux インストーラーを使用して JIRA をインストールします。 
  • Windows – Windows サーバー上に Jira をインストールします。 

On this page:

はじめる前に

JIRA をインストールする前に、いくつかの質問に答える必要があります。 


サポートされているオペレーティングシステムと Java のバージョンを使用していますか?
詳細を読む...

サポート対象プラットフォーム ページでインストールする Jira のバージョンを確認してください。このページでは、サポート対象のオペレーティング システム、データベースおよびブラウザーに関する情報を提供しています。

参考情報

  • 本番環境では、OS X または Mac OS への JIRA のインストールはサポートされていません。
  • JIRA は OpenJDK 上では実行できません。Oracle Java をインストールする必要があります。
  • JDK (Java Development Kit) または JRE (Java Runtime Environment)のいずれかを使用することができます。
  • サポートされているのは、JIRA とバンドルされている Apache Tomcat のバージョンのみです。
Jira をサービスとして実行しますか?
詳細を読む...

サービスとして JIRA を実行することは、Linux サーバーが起動されると、JIRA アプリケーションが自動的に始動することを意味します。

サービスとして JIRA を実行する場合は Linux インストーラーを使用してください。

JIRA をサービスとして実行しない場合:

  • You will start your JIRA application by running the start-jira.sh file in your JIRA installation directory.
  • JIRA を実行する専用ユーザーの作成をお勧めします。このユーザーはインストールディレクトリおよびホームディレクトリに対する完全な読取り、書き込み、および実行権限を持つ必要があります。
  • サーバーが再起動される場合、JIRA を手動で再起動する必要があります。
どのデータベースを使用することを計画していますか? 
詳細を読む...

To run JIRA in production you'll need an external database. Check the Supported platforms page for the version you're installing for the list of databases we currently support. If you don't already have a database, PostgreSQL is free, easy to set up and has been extensively tested with JIRA.

参考情報

  • 開始前にデータベースをセットアップします。PostgreSQLOracleMySQLおよび SQL Serverのステップ ガイドをご利用いただけます。
  • UTF-8 文字エンコーディングを使用します。
  • Oracle または MySQL を使用している場合、ご使用のデータベース用のドライバをダウンロードする必要があります。
  • 組み込みの H2 データベースは Jira の評価用に使用できますが、本番環境で実行する前に別のデータベースに移行する必要があります。最初から外部データベースを使用するほうが手間が省ける場合もあります。

Jira ライセンスはありますか?

詳細を読む...

You'll need a valid JIRA Software Server, JIRA Core Server or JIRA Service Desk Server license to use JIRA.

参考情報

  • Jira アプリケーション ライセンスをまだ購入していない場合は、セットアップ中に評価版ライセンスを作成できます。
  • If you already have a license key you'll be prompted to log in to my.atlassian.com to retrieve it, or you can enter the key manually during setup.
  • Jira Cloud から移行する場合、新しいライセンスが必要です。

JAVA_HOME 変数が正しく設定されていますか?
詳細を読む...

Before you install JIRA, check that you're running a supported Java version and that the JAVA_HOME environment variable is set correctly.

JIRA アプリケーションは Oracle JDK または JRE でのみ実行可能です。

ご使用の Java バージョンを確認するには:

$ java -version

JAVA_HOME 変数が正しく設定されていることを確認するには:

$ echo $JAVA_HOME

If you see a path to your Java installation directory, the JAVA_Home environment variable has been set correctly. If a path is not returned you'll need to set your JAVA_HOME environment variable manually before installing JIRA.

JIRA を実行するために専用ユーザーを作成しましたか?
詳細を読む...

専用ユーザーとして JIRA を実行することを強くお勧めします。

開始する前にこのユーザーを作成してください。こにより、インストールディレクトリおよびホームディレクトリの作成時に、このユーザーに適切な読み取りおよび書き込み権限を付与できます。

この例では、jira というユーザーを作成します。

$ sudo /usr/sbin/useradd --create-home --comment "Account for running JIRA Software" --shell /bin/bash jira


Jira アプリケーションのインストール

1. JIRA のダウンロード

ご利用のオペレーティング システムに対応した tar.gz ファイルをダウンロードします。

2. インストールディレクトリの作成

  1. Create your installation directory – this is where JIRA will be installed. Avoid using spaces or special characters in the path. We'll refer to this directory as your <installation-directory>
     

    手順について

    この例では、インストール ディレクトリを jirasoftware と呼びます。

    $ mkdir jirasoftware
  2. Extract the JIRA tar.gz file to your <installation-directory>. We recommend using a GNU version of the archive utility, especially on Solaris.
     

    手順について

    JIRA をダウンロードしたディレクトリに移動し、次のコマンドを実行します。

    $ tar -xzf atlassian-jira-software-X.X.X.tar.gz -C <installation-directory>
    $ cd <installation-directory>
    $ tar -xf atlassian-jira-software-X.X.X.tar

    Replace x.x.x with your JIRA version and <installation-directory> with the full path to the directory you created in the last step.

  3. Give your dedicated JIRA user read, write and execute permission to your <installation-directory>
     

    手順について

    この例では、インストール ディレクトリの所有権を変更し、ユーザー jira に読み取り、書き込み、および実行権限を付与しています。

    $ chown -R jira <installation-directory>
    $ chmod -R u=rwx,go-rwx <installation-directory>

3. ホームディレクトリの作成

  1. Create your home directory – this is where JIRA application data like logs, search indexes and files will be stored. This should be separate to your installation directory, with no spaces or special characters in the path. Each JIRA application needs its own home directory. 

    We'll refer to this directory as your <home-directory>
     

    手順について

    この例では、ホーム ディレクトリを jirasoftware-home と呼びます。

    $ mkdir jirasoftware-home
  2. Give your dedicated JIRA user read, write and execute permissions to the <home-directory>.

    手順について

    この例では、ホーム ディレクトリの所有権を変更して、ユーザー jira に読み取り、書き込み、および実行権限を付与しています。

    $ chown -R jira <home-directory>
    $ chmod -R u=rwx,go-rwx <home-directory>
  3. Tell JIRA where to find your <home-directory> when it starts up.  There are two ways to do this:
      

    jira-application.properties ファイルを編集...

    任意のテキスト エディタで <installation-directory>\atlassian-jira\WEB-INF\classes\jira-application.properties を編集します。

    jira.home の後に、ホーム ディレクトリへの絶対パス (symlink ではない) を追加します。例:

    jira.home=/var/jirasoftware-home
    環境変数を設定する...

    お使いのオペレーティング システムで、<home-directory> への絶対パスを持つ環境変数 JIRA_HOME を設定できます。

    ターミナルで以下を実行します。

    export JIRA_HOME=/path/to/home-directory

    次に、JIRA を起動するときに使うスクリプトに上記のコマンドを追加できます。

4. ポートの確認

By default JIRA listens on port 8080. If you have another application running on your server that uses the same ports, you'll need to tell JIRA to use a different port. 
 

手順について

ポートを変更する方法

  1. <installation-directory>\conf\server.xml を編集します。

  2. サーバーポート (8005) およびコネクタポート (8080) を変更してサーバー上のポートを解放します。

    以下の例では、サーバーポートを 5005、コネクタポートを 5050 に変更しました。

    <Server port="5005" shutdown="SHUTDOWN">
    ...
       <Service name="Catalina">
          <Connector port="5050"
             maxThreads="150"
             minSpareThreads="25"
             connectionTimeout="20000"
             enableLookups="false"
             maxHttpHeaderSize="8192"
             protocol="HTTP/1.1"
             useBodyEncodingForURI="true"
             redirectPort="8443"
             acceptCount="100"
             disableUploadTimeout="true"/>

Unix サーバーを起動し、1024 以下のポート (例えば、ポート番号 80) をバインドする場合、ポートをうまくバインドするには、JIRA をルートで起動する必要があります。

5. JIRA の起動

  1. <installation-directory>/bin/start-jira.sh を実行してセットアップ プロセスを開始します。
     

    手順について

    専用ユーザーとして JIRA を実行することをお勧めします。

    $ su -u <user>
    $ ./start-jira.sh

    Ubuntu を使用している場合は、コマンドは次のように少し異なります。

    $ sudo su <user>
    $ ./start-jira.sh
  2. Go to http://localhost:8080/ to launch JIRA in your browser (change the port if you've updated the Connector port).


JIRA の起動で問題が発生していますか?
  • JAVA_HOME 変数が正しく設定されていることを確認します。

Jira アプリケーションのセットアップ

6. セットアップ方法の選択

自分で設定するを選択します。

7. データベースへの接続

  1. データベースをまだ作成していない場合、ここで作成します。詳細については、このページの「はじめる前に」セクションを参照してください。 
  2. 独自データベースを選択します。 
  3. データベースのタイプを選択してから、データベースの詳細を入力します。 
      

    手順について

    Jira は標準 JDBC データベース接続を使用してデータベースに接続します。接続プールは Jira 内で処理され、Jira 設定ツールを使用して後から変更できます。

    If you're using MySQL there's an extra step: 

    • Download and extract the appropriate database JDBC driver.
    • セットアップ ウィザードを使用して続行する前に、JAR ファイルを <jira-installation>/lib フォルダにドロップします。

    セットアップウィザードにて :

    • Driver Class Name – データベース ドライバの Java クラス名です。不明な場合は、データベースのドキュメント確認してください。
    • データベース URL – データベースの JDBC URL。不明な場合は、データベースのドキュメント確認してください。
    • ユーザー名パスワード – Jira がユーザーのデータベースにアクセスするために使用できる有効なユーザー名とパスワードです。

8. アプリケーション プロパティを設定する

  1. JIRA サイトに名前を付けます。
  2. Web サイトを非公開にするか、だれでも登録できるかを選択します。この設定は後で変更できます。 
  3. ベース URL (ユーザーが JIRA サイトにアクセスする時に使用するアドレス) を入力します。 

9. ライセンスの入力

Follow the prompts to log in to my.atlassian.com to retrieve your license, or enter a license key.

10. 管理者アカウントの作成

管理者アカウントの詳細を入力します。セットアップの完了後に管理者を追加することができます。

11. メール通知の設定

メール サーバーの詳細を入力します。これにより、課題が変更されたら Jira から通知を送信することができます。

12. Jira の使用を開始する

That's it! Your JIRA site is accessible from your base URL or a URL like this: http://<computer_name_or_IP_address>:<port>

チームの立ち上げと運営に役立つ情報を以下に挙げます。

トラブルシューティング

JIRA のインストールで問題が生じていますか?
  • JAVA_HOME が正しく設定されていることを確認します。

 詳細は、ナレッジベースの「インストールのトラブルシューティング」を参照してください。  

最終更新日: 2018 年 10 月 8 日

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

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