Install Bitbucket Server on Windows from a zip file

Install Bitbucket Server on Windows



アトラシアン コミュニティをご利用ください。


This page describes how to install Bitbucket Server in a production environment, with an external database, manually using a zip file.




Other ways to install Bitbucket Server: 

  • 評価版 - 無料トライアルをすぐに利用できます。
  • Installer – install Bitbucket Server on Windows installer. 
  • Linux - install Bitbucket Server on a Linux operating system.

On this page


Before you install Bitbucket Server, there are a few questions you need to answer. 

サポートされているオペレーティングシステムと Java のバージョンを使用していますか?

Check the Supported Platforms page for the version of Bitbucket Server you are installing. This will give you info on supported operating systems, databases and browsers.


  • We don't support installing Bitbucket Server on macOS for production sites.
Do you want to run Bitbucket Server as a service?

Running Bitbucket Server as a service means that Bitbucket Server will automatically startup when Windows is started.

You should use the Windows installer if you want to run Bitbucket Server as a service.

If you choose not to run Bitbucket Server as a service:

  • You will start and stop Bitbucket Server by running the start-bitbucket.bat file in your Bitbucket Server installation directory.
  • Bitbucket Server will be run as the user account that was used to install Bitbucket Server, or you can choose to run as a dedicated user.
  • Bitbucket Server will need to be restarted manually if your server is restarted.

For more information about these options, see the pages:

Are ports 7990, 7992, and 7993 available?

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.

Ports 7992 and 7993: Bitbucket Server's bundled Elasticsearch instance, which is required for search functionality, requires ports 7992 and 7993 be available. This is not configurable, so ensure these ports are available.


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.


Do you have a Bitbucket Server license?


You'll need a valid license to use Bitbucket Server.


  • If you don't have a license you can create an evaluation license during setup, and be sure to use your business email address.
  • If you already have a license key you'll be prompted to log in to to retrieve it, or you can enter the key manually during setup.
  • If you're migrating from Bitbucket Cloud (, you'll need a new license.

Do you have Git and Perl installed and on the right version?

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.

Do not upgrade Git to the latest version until you check the Supported Platforms page for which version of Git is currently supported.

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

JAVA_HOME 変数が正しく設定されていますか?

Before you install Bitbucket Server, check that you're running a supported Java version and that the JAVA_HOME environment variable is set correctly.

JAVA_HOME 変数を確認するには:

コマンド プロンプトを開いて「echo %JAVA_HOME%」と入力し、Enter を押します。 

  • Java インストール ディレクトリへのパスが表示される場合、JAVA_Home 環境変数は正しく設定されています。
  • 何も表示されない場合、または %JAVA_HOME% のみ返される場合、JAVA_HOME 環境変数を手動で設定する必要があります。
Do you need to use a remote instance of Elasticsearch?

Bitbucket Server comes with a bundled Elasticsearch instance, which runs as a separate process from the Bitbucket Server application and doesn't require any extra configuration.

You can can also install a remote Elasticsearch instance on a remote machine, which can provide some advantages allocating memory resources. You're better off using our bundled Elasticsearch that will be automatically configured with its scripts out of the box.

If you still want to use a remote instance of Elasticsearch there are instructions for doing so on the page How to Install and configure a remote Elasticsearch instance.

Install Bitbucket Server

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

Download the zip file -

2. インストールディレクトリの作成

  1. 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>.

  2. Extract the zip file to your <installation-directory>

3. ホームディレクトリの作成

  1. 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>

    A few things to note about setting up the home directory on Windows that will make life easier...

  2. 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 the BITBUCKET_HOME line and add the absolute path to your home directory.

      Here's an example of what that could look like when you're done...
      set BITBUCKET_HOME=C:\application-data\bitbucket

    • 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

      1. Go to System Environment Variables in Windows.
      2. Click Environment Variables, and then New under 'System variables'.
      3. 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. Start Bitbucket

  1. Change directory to the <installation-directory> and run this command:

  2. 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. データベースへの接続 

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

Select External as your database, then choose a Database Type from the dropdown menu and enter the details of your database.

If you plan to use MySQL, there's an extra step...

The JDBC drivers for MySQL / MariaDB are not bundled with Bitbucket Server (due to licensing restrictions), so you need download and install the driver.

  1. MySQL Connector/J JDBC ドライバをダウンロード サイトからダウンロードします。
  2. Expand the downloaded zip/tar.gz file.
  3. Copy the .jar file from the extracted directory to your <Bitbucket home directory>/lib directory.
  4. Restart Bitbucket server.

Also see Connecting Bitbucket Server to MySQL.

6. Add your license key

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

You can also set the base URL at this step, (you can elect to do this later).

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

  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.

8. Start using Bitbucket Server

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


When setting up Bitbucket in a production environment, we recommend that you configure these aspects next:

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

最終更新日: 2021 年 10 月 6 日


Powered by Confluence and Scroll Viewport.