Run the Bitbucket installer
This page provides information about running Bitbucket Data Center and Server with search installer. For high-level information about installing and using Bitbucket see Getting started.
Linux、macOS、および Windows のオペレーティング システムに対応したインストーラーを使用できます。
インストーラーは以下を実行します。
- Install Bitbucket into a fresh directory, even if you have an earlier version installed.
- Install a supported version of the Java JRE, which is only available to Bitbucket, if necessary.
- バンドルされる、Elasticsearch のローカル インスタンスをインストールします。
- Launch Bitbucket when it finishes.
インストーラーが提供する追加サービスのうち、このページで説明しているものは次のとおりです。
You can also automate the Bitbucket Setup Wizard so that a Bitbucket instance can be completely provisioned automatically – see Automated setup for Bitbucket.
インストーラーの実行
アトラシアンのダウンロード サイトから Bitbucket Server のインストーラーをダウンロードします。
インストーラーを実行し、インストール ウィザードに従います。
Install Bitbucket as a service
On Linux and Windows systems, the installer can install Bitbucket as a service (although not when upgrading an existing instance of Bitbucket).
"atlbitbucket" という名前のサービス アカウントが作成されます。
Linux の場合
- "atlbitbucket" アカウントはロック済みアカウントになります (システムへのログインには使用できません)。
- The
init.d
script will be linked to run levels 2, 3, 4 and 5. If you wish to change this, you will need to configure it manually.
On Windows (Bitbucket Server)
インストーラーがサービス アカウントのパスワードを生成します。Windows 管理者はこのアカウントを所有したい場合、アカウント パスワードを更新できます。また、このサービスのログオン資格情報も更新する必要があります。
The 'atlbitbucket' account will be configured with SeServiceLogonRight so that it can be used by the service. It will also be configured with
SeDenyBatchLogonRight
,SeDenyInteractiveLogonRight
,SeDenyNetworkLogonRight
, andSeDenyRemoteInteractiveLogonRight
so that it cannot be used to log into the machine.Bitbucket Server インストーラーを使用して Windows サービスが作成された場合、Bitbucket Server ホーム ディレクトリの場所 (BITBUCKET_HOME 変数により定義されます) は Bitbucket Server Service JVM オプションとして構成されます。
To change this, go to Service Properties. In the service properties, go to the Java tab, and change
bitbucket.home,
as in the below image.
コンソールおよび無操作モード
The Bitbucket installer has three modes:
- GUI モード: インストーラーの既定モードでは GUI インストーラーが表示されます。
- Console mode: if the installer is invoked with the
-c
argument, the interaction with the user is performed in the terminal from which the installer was invoked. - Unattended mode: if the installer is invoked with the
-q
argument, there is no interaction with the user and the installation is performed automatically with the default values.
Unattended mode also allows you to supply a response file with a -varfile
option, to supply answers for all questions that are used instead of the defaults. An example response file is:
// Should Bitbucket Server be installed as a Service? Must be ADMIN (default: true if the process is running with administrator rights, false otherwise). If false, the home and installation directories must be specified to point to directories owned by the user
app.install.service$Boolean=true
// The ports Bitbucket Server should bind to (defaults: portChoice=default, httpPort=7990)
portChoice=custom
httpPort=7990
// Path to the Bitbucket Server HOME directory (default: /var/atlassian/application-data/bitbucket if the process is running with administrator rights, ~/atlassian/application-data/bitbucket otherwise)
app.bitbucketHome=/var/atlassian/application-data/bitbucket
// The target installation directory (default: /opt/atlassian/bitbucket/<VERSION> if the process is running with administrator rights, ~/atlassian/bitbucket/<VERSION> otherwise)
app.defaultInstallDir=/opt/atlassian/bitbucket/<VERSION>
以下のパラメータをファイルに含めることができます。
パラメーター | 許可される値 | 説明 |
---|---|---|
app.bitbucketHome | ターゲットのローカル ホーム ディレクトリへのパス | |
app.defaultInstallDir | これは、新しいインストール、またはアップグレードする既存のインストール ディレクトリのターゲット インストール ディレクトリへのパスです。 | |
installation.type |
| Determines the type of installation:
|
portChoice |
| Determines whether Bitbucket should be installed with default ports or custom values. |
httpPort | <numeric port value> | HTTP port for Bitbucket, if portChoice is set to custom. |
app.install.service$Boolean |
| Determines whether Bitbucket should be installed as a service or not. |
app.service.account | <service account name> | Account name for the Bitbucket service if Bitbucket is installed as a service. |
launch.application$Boolean |
| Determines whether the installer should start Bitbucket once installation is complete. |
sys.adminRights$Boolean=true |
| Indicates whether the user running the installer has admin rights privileges on the machine. |
sys.languageId | Default application language |
Windows でコンソール / 無操作モードを使用するには、次のように入力して CMD/PowerShell に install4j プロセスを待機するよう指示する必要があります。
start /wait installer.exe -c
macOS では、ディスク イメージをマウントしてから、次のコマンドを使用してインストーラーで Java スタブを実行します。
/Volumes/Bitbucket Server/Bitbucket Server\ X.X.X\Installer.app/Contents/MacOS/JavaApplicationStub -options
where X.X.X
is the version of Bitbucket, and -options
can include -c
or -q
, and -varfile
followed by the path to the response file.
詳細は、install4j のドキュメントを参照してください。