Bitbucket Server の起動と停止
このページでは、ニーズに適した方法で Bitbucket Server を起動または停止できるさまざまな方法について説明します。
インストール中に Bitbucket を起動する
Bitbucket Server インストーラーでは Bitbucket Server を自動的に起動できます。インストーラーを使用していない場合は、ニーズに適した以下の方法を使用して Bitbucket を起動します。
On this page
Bitbucket Server の起動 / 停止
Bitbucket Server を起動 / 停止する方法
Linux の場合
Change to your <Bitbucket Server installation directory>
, then use the command that meets your needs:
bin/start-bitbucket.sh
bin/stop-bitbucket.sh
Windows の場合
Windows で Bitbucket Server を自動的に起動および停止する場合、Bitbucket Server がサービスとしてインストールされている必要があります。
You can use start-bitbucket.bat
for short term debugging, using Ctrl+C will safely shutdown the instance when it is no longer needed.
macOS の場合
Use the app icons in the <Bitbucket Server installation directory>
. These link to the start-bitbucket.sh
and stop-bitbucket.sh
scripts in <Bitbucket Server installation directory>/bin
.
Bitbucket Data Center の起動
Bitbucket Data Center の場合、リモート Elasticsearch インスタンスを別に開始する必要があります。Bitbucket Data Center セットアップの要件として、クラスタ全体に対してリモート Elasticsearch を 1 つのみにする必要があります (「Bitbucket Data Center のインストール」を参照)。リモート Elasticsearch インスタンスを起動する具体的な手順については、Elasticsearch のドキュメントを参照してください。
Bitbucket Data Center を起動する方法 (Bitbucket にバンドルされている Elasticsearch インスタンスは起動しません)
- Change to your
<Bitbucket Server installation directory>
次のコマンドを実行します。
start-bitbucket.sh --no-search
サービスとして実行中の Bitbucket Server の起動 / 停止
Windows および Linux システムでは、Bitbucket Server をサービスとしてインストールし、システムが起動すると自動的に Bitbucket Server を開始するように選択できます。
サービスとして実行中の Bitbucket Server を手動で起動 / 停止する方法
Linux の場合
次のコマンドを使用して Bitbucket Server サービスを管理します。
# service atlbitbucket status
# service atlbitbucket stop
# service atlbitbucket start
Windows の場合
Start and stop the Bitbucket Server service from the services console, on Windows. Ensure you start both the AtlassianBitbucket
and AtlassianBitbucketElasticsearch
services.
バンドルされている Elasticsearch を起動せずに Bitbucket Server を起動
バンドルされた Elasticsearch インスタンスを起動せずに Bitbucket Server を起動する方法
start-bitbucket.sh --no-search
Windows の場合
start-bitbucket.bat /no-search