Install Bitbucket Data Center on Linux from an archive file

Install Bitbucket Data Center on Linux

このページの内容

お困りですか?

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

コミュニティに質問

This page describes how to install Bitbucket Data Center in a production environment, with an external database, manually using a tar.gz file.

この方法では、インストールプロセスをユーザーが最大限制御できます。



Other ways to install Bitbucket Data Center: 

  • Trial - get a free trial up and running in no time.
  • Installer – install Bitbucket using the Linux installer.

On this page

はじめる前に

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

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

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

参考情報

  • We don't support installing Bitbucket Data Center on macOS for production sites.
  • The Bitbucket Data Center installer includes Java (JRE) and Tomcat, so you don't need to install these separately.
Do you want to run Bitbucket Data Center as a service?
詳細を読む...

Running Bitbucket Data Center as a service means that Bitbucket Data Center will automatically startup when your Linux server is started.

You should use the Linux installer if you want to run Bitbucket Data Center as a service.

If you choose not to run Bitbucket Data Center as a service:

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

For more information about these options, see the pages:

Bitbucket uses ports 7990, 7992, and 7993 by default, are they available?
詳細を読む...

Port 7990: Bitbucket runs on port 7990 and on port 7999 for SSH 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 Data Center bundled search server, 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 Data Center license?
詳細を読む...

You'll need a valid license to use Bitbucket Data Center.

参考情報

  • 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 my.atlassian.com to retrieve it, or you can enter the key manually during setup.
  • If you're migrating from Bitbucket Cloud (bitbucket.org), you'll need a new license.

Do you have Git and Perl installed and on the right version?
詳細を読む...

Bitbucket Data Center requires Git on the machine that will run Bitbucket Data Center. If you need to check, install, or upgrade Git on the Bitbucket Data Center 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 Data Center, check that you're running a supported Java version and that the JAVA_HOME environment variable is set correctly.

JAVA_HOME 変数を確認するには:

$ java -version

JAVA_HOME 変数が正しく設定されていることを確認するには:

$ echo $JAVA_HOME

If you see a path to your Java installation directory, the JAVA_Home environment variable has been set correctly. If a path is not returned you'll need to set your JAVA_HOME environment variable manually before installing Bitbucket Data Center.

Do you need to use a remote search server?
詳細を読む...

Bitbucket Data Center comes with a bundled search server, which runs as a separate process from the Bitbucket Data Center application and doesn't require any extra configuration.

You can also install a search server on a remote machine, which can provide some advantages allocating memory resources. In most cases, you're better off using our bundled search server that will be automatically configured out of the box.

A clustered Bitbucket Data Center installation requires a search server on a remote machine.

Check the instructions for using a search server on a remote machine: Install and configure a remote Elasticsearch server and Install and configure a remote OpenSearch server.



Install Bitbucket Data Center

1. Download Bitbucket Data Center

Download the tar.gz file - www.atlassian.com/software/bitbucket/download.

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 tar.gz file to your <installation-directory>

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

  1. Create your home directory (with full control permission) – this is where your Bitbucket Data Center data is stored. This should be separate to your installation directory. We'll refer to this directory as your <home-directory>

  2. Edit <installation-directory>/bin/set-bitbucket-home.sh file – uncomment the BITBUCKET_HOME line and add the absolute path to your home directory.

4. Start Bitbucket

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

    bin/start-bitbucket.sh
  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 Data Center 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.


6. Add your license key

Follow the prompts to log in to my.atlassian.com 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.

9. Start using Bitbucket Data Center

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.

最終更新日 2024 年 9 月 24 日

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

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