Bitbucket Server を Linux にインストールする
このページでは、Linux インストーラーを使用して、外部データベースのある本番環境に Bitbucket Server をインストールする方法を説明します。
これは、Linux サーバー上で本番サイトを稼働させる最も簡単な方法です。
Bitbucket Server のその他のインストール方法
On this page
はじめる前に
Bitbucket Server をインストールする前に、いくつかの質問に答える必要があります。
サポートされているオペレーティング システムを使用していますか? | |
Bitbucket Server をサービスとして実行する予定ですか? | |
Bitbucket は既定で 7990、7992、および 7993 ポートを使用します。これらは利用可能ですか? | |
データベースはセットアップ済みで使用可能な状態ですか? | |
Bitbucket Server ライセンスを持っていますか? | |
Git および Perl の適切なバージョンをインストールしていますか? |
Bitbucket Server のインストール
1. Bitbucket Server をダウンロードする
インストーラーをダウンロードします: www.atlassian.com/software/bitbucket/download
2. インストーラーを実行する
インストーラーを実行可能にします。
インストーラーの実行 -
sudo
を使用してインストーラーを実行することをお勧めします。これにより Bitbucket Server を実行する専用アカウントが作成され、Bitbucket Server をサービスとして実行できます。- プロンプトに従ってBitbucket をインストールします。次の情報を提供します。
- Bitbucket インスタンスのタイプ - インストールのタイプ。この手順では Standard を選択します。
- インストール ディレクトリ - Bitbucket のインストール先。
- ホーム ディレクトリ - Bitbucket のアプリケーション データの保存先。
- TCP ポート - Bitbucket が実行される HTTP コネクタ ポートおよび制御ポート。
- インストーラーが完了したら、ブラウザで
http://localhost:7990
にアクセスしてセットアップ プロセスを開始します。
Bitbucket のセットアップ
The Setup Wizard runs automatically when you visit Bitbucket Server in your browser the first time it's started. For details on how the Bitbucket Server Setup Wizard can be completed automatically, see Automated setup for Bitbucket.
3. データベースへの接続
- データベースをまだ作成していない場合、ここで作成します。詳細については、このページの「はじめる前に」セクションを参照してください。
データベースとして [外部] を選択し、ドロップダウン メニューからデータベース タイプを選択して、データベースの詳細情報を入力します。
4. ライセンス キーの追加
また、このステップでベース URL を設定できます (あとから行うこともできます)。
5. 管理者アカウントの作成
- 管理者アカウントの詳細情報を入力します。
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.
6. Bitbucket Server の使用を開始する
次のステップ
本番環境に Bitbucket をセットアップする場合、次に、以下の部分を設定することをおすすめします。
- Connect Bitbucket to a user directory - manage users/groups stored in an external directory.
- Run Bitbucket as a dedicated user - run Bitbucket from a user account with restricted privileges.
- Secure the Bitbucket home directory - secure the home directory against unauthorized access.
- Proxy and secure Bitbucket - run Bitbucket behind a reverse proxy and enable HTTPS access.
- Establish a data recovery plan - backup the home directory and database of your instance.
Read more about setting up Bitbucket for an enterprise here: Using Bitbucket in the enterprise.