Install Bitbucket Server on Linux from an archive file
This page describes how to install Bitbucket Server in a production environment, with an external database, manually using a tar.gz file.
この方法では、インストールプロセスをユーザーが最大限制御できます。
Other ways to install Bitbucket Server:
On this page
はじめる前に
Before you install Bitbucket Server, there are a few questions you need to answer.
サポートされているオペレーティングシステムと Java のバージョンを使用していますか? | |
Do you want to run Bitbucket Server as a service? | |
Bitbucket uses ports 7990, 7992, and 7993 by default, are they available? | |
データベースはセットアップ済みで使用可能な状態ですか? | |
Do you have a Bitbucket Server license? | |
Do you have Git and Perl installed and on the right version? | |
JAVA_HOME 変数が正しく設定されていますか? | |
Do you need to use a remote search server? |
Install Bitbucket Server
1. Bitbucket Server をダウンロードする
Download the tar.gz
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
tar.gz
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
<home-directory>
. Edit
<installation-directory>/bin/set-bitbucket-home.sh
file – uncomment theBITBUCKET_HOME
line and add the absolute path to your home directory.
4. Start Bitbucket
Change directory to the
<installation-directory>
and run this command:bin/start-bitbucket.sh
In your browser, go to
http://localhost:7990/
and run through the Setup Wizard.
Set up Bitbucket
The Setup Wizard runs automatically when you visit Bitbucket Server in your browser the first time it's started.
5. データベースへの接続
- データベースをまだ作成していない場合、ここで作成します。詳細については、このページの「はじめる前に」セクションを参照してください。
Select External as your database, then choose a Database Type from the dropdown menu and enter the details of your database.
6. Add your license key
You can also set the base URL at this step, (you can elect to do this later).
7. 管理者アカウントの作成
- 管理者アカウントの詳細情報を入力します。
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.
9. Start using Bitbucket Server
次のステップ
When setting up Bitbucket in a production environment, we recommend that you configure these aspects next:
- 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.