Changing the port that Bitbucket Server listens on
You can change the port that Bitbucket Server listens on from the default '7990
' to a different value if another application is already running on that port.
netstat を使用して空いているポートを特定できます。
Bitbucket Server がリッスンするポートを変更する方法
- Bitbucket Server ホーム ディレクトリに移動します。
Open the
shared/bitbucket.properties
file, add thesever.port
property (or edit it if a line for theserver.port
property already exists), and set the value to the port number Bitbucket will run on. For example, to set to the port to8080
you would add:server.port=8080
ファイルを保存します。
変更内容を有効化するため、Bitbucket Server を再起動します。「Bitbucket Server の開始および終了」をご参照ください。
重要な考慮事項
ファイアウォールを使用している場合、選択したコネクタ ポート経由の HTTP または HTTPS トラフィックを許可するように構成されていることを確認します。
Linux サーバーで Bitbucket Server を実行していて、予約ポート (1024 未満のポート、例: ポート 80) をバインドしたい場合、ポートをうまくバインドするには Bitbucket Server を root として起動する必要があります。または、Bitbucket Server を 1024 よりも大きいポートにバインドし、iptables を構成して、ポート 80 からより上位のポートにトラフィックをリダイレクトします。