Install Bitbucket Server on Linux

This page describes how to install Bitbucket Server in a production environment, with an external database, using the Linux installer.

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

 

 

Other ways to install Bitbucket Server: 

  • 評価 - 無料トライアルにサインアップし、すぐに利用します
  • TAR.GZ – install Bitbucket Server manually from an archive file. 
  • Windows - install Bitbucket Server on a Windows server.

このページの内容

 

はじめる前に

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

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

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.
  • The Bitbucket Server installer includes Java (JRE) and Tomcat, so you don't need to install these separately.
Do you want to run Bitbucket Server as a service?
詳細を読む...

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

If you choose to run Bitbucket Server as a service:

  • You must use sudo to run the installer to be able to install Bitbucket Server as a service.
  • The installer will create a dedicated user account, atlbitbucket, that will run the service.

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

  • You will start and stop Bitbucket Server by running the start-bitbucket.sh 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:

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

Port 7990: Bitbucket runs on port 7990 by default. If this port is already in use, see Changing the port that Bitbucket Server 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.
  • ライセンスキーをお持ちの場合は、my.atlassian.com にログインして取得するようにプロンプトが出されます。または、セットアップ中にライセンスキーを手動で入力することもできます。
  • 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 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.

トラブルを回避するため、Perl を含むその他のシステム要件をすべて満たしていることを確認します。

 

Install Bitbucket Server

1. Download Bitbucket Server

Download the installer - www.atlassian.com/software/bitbucket/download.

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

  1. インストーラーを実行可能にします。

    Show me how to do this...

    Change to the directory where you downloaded Bitbucket Server then execute this command:

    chmod +x atlassian-bitbucket-x.x.x-x64.bin

    Where X.X.X is is the Bitbucket Server version you downloaded.



  2. Run the installer – we recommend using sudo to run the installer as this will create a dedicated account to run Bitbucket Server and allow you to run Bitbucket Server as a service.

    Show me how to do this...

    To use sudo to run the installer execute this command: 

    $ sudo ./atlassian-bitbucket-x.x.x-x64.bin

    Where X.X.X is is the Bitbucket Server version you downloaded.

    You can also run the installer with root user privileges.



  3. Follow the prompts to install Bitbucket. You'll be asked for the following info:
    1. Type of Bitbucket instance - the type of installation, for these instructions select Standard.
    2. Installation directory - where Bitbucket will be installed.
    3. Home directory - where Bitbucket application data will be stored.
    4. TCP ports - the HTTP connector port and control port Bitbucket will run on.
       
  4. Once the installer completes, head to http://localhost:7990 in your browser to begin the setup process.

Set up Bitbucket

The Setup Wizard runs automatically when you visit Bitbucket Server in your browser the first time it's started.

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

  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. Download the MySQL Connector/J JDBC driver from the download site.
  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.

4. 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).

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

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

    詳細を読む...

    You can also chose 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 elect to do this later.

6. Start using Bitbucket Server

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

次のステップ

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

 

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

最終更新日: 2018 年 2 月 9 日

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

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