Bitbucket Server を Windows にインストールする

このページでは、インストーラーを使用して、外部データベースのある本番環境に Bitbucket Server をインストールする方法を説明します。

これは、Windows サーバー上で本番サイトを稼働させる最も簡単な方法です。



Bitbucket Server のその他のインストール方法 

  • 評価版 - 無料トライアルをすぐに利用できます。
  • Zip - Bitbucket Server を Zip ファイルから手動でインストールします。 
  • Linux - Bitbucket Server を Linux オペレーティング システムにインストールします。

On this page:

はじめる前に

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

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

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

参考情報

  • Bitbucket Server インストーラーには Java (JRE) および Tomcat が含まれているため、これらを別途インストールする必要はありません。
Bitbucket Server をサービスとして実行する予定ですか?
詳細を読む...

Bitbucket Server をサービスとして実行すると、Windows の起動時に Bitbucket Server が自動的に開始します。

Bitbucket Server をサービスとして実行する場合

  • インストーラーは専用ユーザーアカウント atlbitbucket を作成し、これがサービスを実行します。

Bitbucket Server をサービスとして実行しない場合

  • Bitbucket Server のインストール ディレクトリで start-bitbucket.bat ファイルを実行することで Bitbucket Server を開始および停止します。
  • Bitbucket Server は、Bitbucket Server をインストールするために使用されたユーザー アカウントで実行されます。専用ユーザーとして実行するように選択することもできます。
  • サーバーが再起動される場合、Bitbucket Server を手動で再起動する必要があります。

これらのオプションの詳細については、次のページを参照してください。

Bitbucket は既定で 7990、7992、および 7993 ポートを使用します。これらは利用可能ですか?
詳細を読む...

Port 7990: Bitbucket runs on port 7990 by default. If this port is already in use, see Change the port Bitbucket listens on for more guidance on changing this.

ポート 7992 および 7993: Bitbucket Server に組み込みの Elasticsearch インスタンス (機能の検索に必要) はポート 7992 および 7993 を使用する必要があります。これを変更することはできないため、これらのポートが利用可能であることを確認してください。

データベースはセットアップ済みで使用可能な状態ですか?
詳細を読む...

To run Bitbucket 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.

参考情報

  • データベースは開始前にセットアップしておきます。PostgreSQLOracle、およびSQL Server 向けのガイドが提供されています。
  • MySQL は Bitbucket Server インスタンスでのサポート対象ですが、これは推奨されません。詳細については、「Bitbucket Server を MySQL に接続する」を参照してください。

Bitbucket Server ライセンスを持っていますか?

詳細を読む...

Bitbucket Server を使用するには、有効なライセンスが必要です。

参考情報

  • ライセンスをお持ちではない場合、セットアップ中に評価ライセンスを作成できます。この際、業務用のメール アドレスを使用するようにしてください。
  • 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.
  • Bitbucket Cloud (bitbucket.org) から移行する場合、新しいライセンスが必要です。

Git および Perl の適切なバージョンをインストールしていますか?
詳細を読む...

Bitbucket Server requires Git on the machine that will run Bitbucket Server. If you need to check, install, or upgrade Git on the Bitbucket Server instance machine, see Installing and upgrading Git.

Git を最新バージョンにアップグレードする前に、現在サポートされている Git バージョンを「サポート対象のプラットフォーム」ページで確認してください。

Check that you have all the other system requirements, including Perl, to avoid any trouble.


Bitbucket Server のインストール

1. Bitbucket Server をダウンロードする

インストーラーをダウンロードします: www.atlassian.com/software/bitbucket/download

2. インストーラーを実行する

  1. インストーラーを実行します。Windows 管理者アカウントを使用することをお勧めします。
  2. プロンプトに従ってBitbucket をインストールします。次の情報を提供します。
    1. Bitbucket インスタンスのタイプ - インストールのタイプ。この手順では Standard を選択します。 

      If you're installing Data Center on a single node, also choose Standard, because this type comes with a bundled Elasticsearch instance and is suitable for a non-clustered Data Center deployment. In the Data Center type, you would need to install it separately.

    2. インストール ディレクトリ - Bitbucket のインストール先。
    3. ホーム ディレクトリ - Bitbucket のアプリケーション データの保存先。
    4. TCP ポート - Bitbucket が実行される HTTP コネクタ ポートおよび制御ポート。
  3. インストーラーが完了すると、Bitbucket がブラウザで起動します。

Bitbucket のセットアップ

ブラウザで初めて Bitbucket Server にアクセスすると、セットアップ ウィザードが自動的に実行されます。

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

  1. データベースをまだ作成していない場合、ここで作成します。詳細については、このページの「はじめる前に」セクションを参照してください。 

データベースとして [外部] を選択し、ドロップダウン メニューからデータベース タイプを選択して、データベースの詳細情報を入力します。

MySQL を使用する場合は追加の手順が必要です...

MySQL / MariaDB 用の JDBC ドライバはライセンス上の制限により、Bitbucket Server にバンドルされていません。このため、ドライバをダウンロードしてインストールする必要があります。

  1. MySQL Connector/J JDBC ドライバをダウンロード サイトからダウンロードします。
  2. ダウンロードした zip/tar.gz ファイルを展開します。
  3. 展開したディレクトリの .jar ファイルを <Bitbucket home directory>/lib ディレクトリにコピーします。
  4. Bitbucket Server を再起動します。

Bitbucket Server を MySQL に接続する」もご参照ください。

4. ライセンス キーの追加

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

また、このステップでベース URL を設定できます (あとから行うこともできます)。

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

  1. 管理者アカウントの詳細情報を入力します。
  2. Select either Go to Bitbucket to go straight to the Bitbucket interface or Integrate with Jira to create your connection with an existing Jira application. 

    詳細を読む...

    You can also select to use a Jira application as your user database during this step. See the page Configuring Jira integration in the Setup Wizard for details. You can also do this later.

6. Bitbucket Server の使用を開始する

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

次のステップ

本番環境に Bitbucket をセットアップする場合、次に、以下の部分を設定することをおすすめします。


Read more about setting up Bitbucket for an enterprise here: Using Bitbucket in the enterprise.

最終更新日: 2023 年 2 月 26 日

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

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