JIRA のインストール (Linux)
This guide describes how to install a new JIRA installation on Linux using the automated 'Linux Installer'. If you are upgrading JIRA, please refer to the Upgrading JIRA guide.
You can also install JIRA from a 'zip' archive — see Installing JIRA from an Archive File on Windows, Linux or Solaris for details. This is useful if you want JIRA to use a pre-existing supported Java platform, since the Linux Installer installs its own JRE to run JIRA.
お使いの Linux OS にインストール済みのアンチウィルス、または、その他のインターネットセキュリティツールが JIRA インストールプロセスを中断し、プロセス完了を妨害することがあります。お使いのアンチウィルス/インターネットセキュリティツールでこの種の問題が発生 した場合、まず対象ツールを無効にしてから JIRA インストールを実行してください。
Linux インストーラーを使用して JIRA をインストールするには 2 つの方法があります:
On this page:
コンソールウィザードの使用
はじめてお使いのサーバーに JIRA をインストールする場合、または、インストール オプションを指定したい場合、コンソール ウィザードを使用してください。
If you have previously installed JIRA using the installation wizard and wish to re-install JIRA again with the same installation options, you can re-install JIRA in 'unattended mode' without any user input required (see below for details).
1. “Linux インストーラー” のダウンロードと実行
“root” 権限で Linux インストーラーを実行する場合、Linux インストーラーは専用ユーザー アカウントを使用して JIRA を作成・実行します。”root” 権限がなくても Linux インストーラーを実行することは可能ですが、インストール オプションは大幅に制限され、(JIRA 実行用の) 専用ユーザー アカウントは作成されません。JIRA をサービスとして実行するには、Linux インストーラーを “root” 権限で実行する必要があります。
- Download the appropriate JIRA 'Linux 64-bit / 32-bit Installer' (.bin) file from the JIRA Download page.
Please Note:
- 32-bit インストーラーを入手するには、“JIRA ダウンロード” ページで ”Show all (すべてを表示する)” リンクをクリックし、 他のインストール パッケージを入手する必要があるかもしれません。
- 64-bit と 32-bit の ".bin" インストーラーの違いは、JIRA を実行するバンドル Java プラットフォームに関するものです。64bit インストーラーでのインストールは、 32bit インストーラーと比較して、(同等レベルのパフォーマンスで実行するには) JIRA インストールに追加メモリ が必要になるかもしれないことを念頭に置いてください。これは、64bit Java プラットフォームのオブジェクト リファレンスのメモリ使用量が 32bit Java プラットフォームの 2 倍であるためです。
- Open a Linux console and change directory (
cd) to the '.bin' file's directory.
If the '.bin' file is not executable after downloading it, make it executable, for example:
chmod a+x atlassian-jira-X.Y.bin
(where X.Y represents your version of JIRA) - “.bin” ファイルを実行し、コンソール ウィザードを起動します。
- “Express Install”、”Custom Install”、”Upgrade an existing JIRA installation” の選択画面が表示されるので、 “Express Install” または “Custom Install” を選択します:
- Express Install— If you choose this option, JIRA will be installed with default settings which are shown in the next step of the console wizard.
Please Note:
- ”root” 権限でインストーラーを実行中の場合、JIRA がサービスとしてインストールされます。
- 設定オプションをカスタマイズしたい場合:
- “e” を入力して、コンソール ウィザードを終了します。
- コンソール ウィザードを再実行します (上記のステップ3)。
- “Custom Install” オプションを選択します。
- Custom Install — このオプションを選択すると、JIRA は次のオプションを指定するように指示を出します (次のオプションは、この後のステップでデフォルト値が入力された状態でコンソール ウィザードに表示されます):
- The 'Destination Directory' in which to install JIRA.
- The JIRA Home directory (which must be unique for each JIRA installation).
- JIRA が実行時に経由する TCP ポート (すなわち、HTTP ポートやコントロールポート)。
- If you are running the installer with 'root' user privileges, you will be prompted to 'Run JIRA as a service' (recommended). You can also do this manually later, as described in Starting JIRA Automatically on Linux.
- Express Install— If you choose this option, JIRA will be installed with default settings which are shown in the next step of the console wizard.
- コンソール ウィザードは JIRA をお使いの OS 上にインストールし、ウィザード完了時に自動的に JIRA を起動します。
注意:
- “root” 権限で Linux インストーラーを実行した場合、Linux インストーラーは、専用 Linux ユーザー アカウント (ユーザー名: “jira”、パスワード: なし) を作成し、このアカウントを使って JIRA を実行します。 このアカウントは次の権限を所有します:
- Full write access to your JIRA Home Directory.
- Limited write access to your JIRA Installation Directory.
- The bundled installer expects the 'root' user to have have the default umask (
0022or002), if this is not set it can cause problems with the install as per JRA-32435 - Getting issue details... STATUS . Please ensure this is set prior to installation. - “root” 権限なしで Linux インストーラーを実行しても、 JIRA を”root” 権限で実行できることに注意してください。しかし、お使いの OS のセキュリティを確保するため、この実行は推奨しません。
- Depending on how big the JIRA instance may become, you may need to increase the maximum number of files available on the operating system. This is further covered in our Too many open files error in Jira server KB - please review it for further information.
2. JIRA の起動
JIRA を未起動の場合、Linux コンソールで適切な command を使用して JIRA を起動できます。
JIRA を起動後、お使いの JIRA サーバーへのネットワーク アクセスをもつコンピューター上の browser からアクセスできます。
2.1 手動による JIRA の起動と終了
In the Linux console, enter the bin subdirectory of your JIRA installation directory and execute the appropriate file:
start-jira.sh(to start JIRA)stop-jira.sh(to stop JIRA)
JIRA will be ready to access (from a browser window) when the following message appears in the application's log file:
*******************************************************
... You can now access JIRA through your web browser.
*******************************************************
/etc/init.d/jira スクリプトを実行すれば、このサービスを使用して JIRA を起動できます。
2.2 ブラウザー経由で JIRA を使う
You can access JIRA from any computer with network access to your JIRA server by opening a supported web browser on the computer and visiting this URL:
http://<computer_name_or_IP_address>:<HTTP_port_number>
ここで:
<computer_name_or_IP_address>is the name or IP address of the computer on which JIRA is installed and<HTTP_port_number>is the HTTP port number specified when you installed JIRA (above).
注意:
- If JIRA does not appear, you may need to change the port that JIRA runs on.
- Application server logs (i.e. for Apache Tomcat) will be written to the
logs/catalina-YYYY-MM-DD.logfile within the JIRA Installation Directory.
3. セットアップ ウィザードの実行
4. 次のステップ
- See JIRA 101 to start creating Projects, creating Users, and customizing your JIRA instance.
- If you did not install JIRA to run as a service, you will need to start JIRA manually every time you restart your computer. To change your JIRA installation to run as a service, please see Starting JIRA Automatically on Linux.
- To get the most out of JIRA, please see Optimizing Performance.
無人インストールの実行
If you have previously installed JIRA using the console wizard (above), you can use a configuration file from this JIRA installation (called response.varfile) to re-install JIRA in 'unattended mode' without any user input required.
前回の JIRA インストールがテスト目的であり、同じコンフィギュレーションを使用して複数のサーバーマシンに JIRA をインストールする必要がある場合、無人モードでの JIRA のインストールにより時間を節約できます。
注意:
- The
response.varfilefile contains the options specified during the installation wizard steps of your previous JIRA installation. Hence, do not uninstall your previous JIRA installation just yet. - If you intend to modify the
response.varfilefile, please ensure all directory paths specified are absolute, for example,sys.installationDir=/opt/atlassian/jira
Unattended installations will fail if any relative directory paths have been specified in this file.
JIRA “Linux インストーラー“ のダウンロードと無人モードでの実行
- Download the JIRA 'Linux Installer' (.bin) file from the JIRA Download Center to a suitable location.
- Linux コンソールを起動します。
- Copy (
cp) the file.install4j/response.varfilelocated in your previous JIRA installation directory, to the same location as the downloaded 'Linux Installer' file.
You can uninstall your previous JIRA installation after this step. Save your
response.varfileif you need to install JIRA on multiple machines. Change directory (
cd) to the location of the 'Linux Installer' file and execute the following command:atlassian-jira-X.Y.bin -q -varfile response.varfileここで:
X.Y— refers to the version of JIRA you are about to install.-q— instructs the installer to operate in unattended mode (i.e. 'quietly').-varfile response.varfile— specifies the configuration file containing the configuration options used by the installer. The location and name of the configuration file should be specified after the-varfileoption.
- 無人モードでのインストールが完了後、JIRA は自動的に起動します。ステップ 2 JIRA の起動(上記)に進んでください。