Bitbucket Server を zip ファイルから Windows にインストールする
This page describes how to install Bitbucket Server in a production environment, with an external database, manually using a zip file.
この方法では、インストールプロセスをユーザーが最大限制御できます。
Bitbucket Server のその他のインストール方法
このページの内容
はじめる前に
Bitbucket Server をインストールする前に、いくつかの質問に答える必要があります。
サポートされているオペレーティングシステムと Java のバージョンを使用していますか? |
|
Bitbucket Server をサービスとして実行する予定ですか? |
|
Are ports 7990, 7992, and 7993 available? | |
データベースはセットアップ済みで使用可能な状態ですか? |
|
Bitbucket Server ライセンスを持っていますか? |
|
Git および Perl の適切なバージョンをインストールしていますか? | |
JAVA_HOME 変数が正しく設定されていますか? | |
Do you need to use a remote instance of Elasticsearch? |
Bitbucket Server のインストール
1. Bitbucket Server をダウンロードする
Download the zip file - www.atlassian.com/software/bitbucket/download.
2. インストールディレクトリの作成
Create your installation directory (with full control permission) – this is where Bitbucket will be installed. Avoid using spaces or special characters in the path. We'll refer to this directory as your
<installation-directory>
.Extract the zip file to your
<installation-directory>
.
3. ホームディレクトリの作成
Create your home directory (with full control permission) – this is where your Bitbucket Server data is stored. This should be separate to your installation directory. We'll refer to this directory as your
<Bitbucket home directory>
.Now tell Bitbucket where your home directory is located. You can do this in one of two ways:
Edit
<installation-directory>/bin/
set-bitbucket-home.bat
file – uncomment theBITBUCKET_HOME
line and add the absolute path to your home directory.Or, you can set an environment variable to tell Bitbucket Server where you created your home directory by setting a
BITBUCKET_HOME
environment variable. To do this- Go to System Environment Variables in Windows.
- [環境変数] をクリックした後、[システム変数] の下で [新規] をクリックします。
- Enter "
BITBUCKET_HOME
" as the Variable name, and the absolute path to your Bitbucket home directory as the Variable value. Don't use a trailing backslash.
4. Bitbucket を起動する
Change directory to the
<installation-directory>
and run this command:bin\start-bitbucket.bat
In your browser, go to
http://localhost:7990/
and run through the Setup Wizard.
Bitbucket のセットアップ
Bitbucket Server の初回起動時にブラウザでアクセスすると、セットアップ ウィザードが自動的に実行されます。
5. データベースへの接続
- データベースをまだ作成していない場合、ここで作成します。詳細については、このページの「はじめる前に」セクションを参照してください。
データベースとして [外部] を選択し、ドロップダウン メニューからデータベース タイプを選択して、データベースの詳細情報を入力します。
6. ライセンス キーの追加
また、このステップでベース URL を設定できます (あとから行うこともできます)。
7. 管理者アカウントの作成
- 管理者アカウントの詳細情報を入力します。
[Bitbucket に進む] をクリックして Bitbucket Server インターフェイスに進むか、[Jira と連携] をクリックして既存の Jira アプリケーションとの間に接続を作成します。
8. Bitbucket Server の使用を開始する
次のステップ
本番環境に Bitbucket Server をセットアップする場合、次のような部分を設定することをおすすめします。
- Bitbucket Server をユーザー ディレクトリに接続 - 外部ディレクトリに保存されているユーザー / グループを管理します。
- Bitbucket Server を専用ユーザーとして実行 - 制限された権限を持つユーザー アカウントを使用して Bitbucket Server を実行します。
- Bitbucket のホーム ディレクトリの保護 - ホーム ディレクトリを不正アクセスから保護します。
- Bitbucket Server のプロキシと安全性確保 - リバース プロキシの内側で Bitbucket Server を実行し、HTTPS アクセスを有効化します。
- データ復旧計画の作成 - インスタンスのホーム ディレクトリおよびデータベースをバックアップします。
大規模な組織を対象とした Bitbucket Server のセットアップの詳細については、「大規模な組織で Bitbucket Server を使用する」を参照してください。