Changing the port that Bitbucket Server listens on

Bitbucket Server を管理する

このページの内容

お困りですか?

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

コミュニティに質問

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.

You can use netstat to identify free ports on your machine.

To change the port Bitbucket Server listens on

  1. Navigate to your Bitbucket Server home directory.
     
  2. Open the shared/bitbucket.properties file, add the sever.port property (or edit it if a line for the server.port property already exists), and set the value to the port number Bitbucket will run on. For example, to set to the port to 8080 you would add: 

    server.port=8080

    ファイルを保存します。
     

  3. Restart Bitbucket Server so the change takes effect. See Starting and stopping Bitbucket Server.

Important considerations

If you are using a firewall, ensure that it is configured to allow HTTP or HTTPS traffic over the connector port you have chosen. 

If you are running Bitbucket Server on a Linux server and want to bind to privileged ports (those below 1024, for example port 80), you will need to start Bitbucket Server as root to successfully bind to the port. Or, you can bind Bitbucket Server to a port over 1024 and then configure iptables to redirect traffic from port 80 to the higher port. 

最終更新日 2019 年 5 月 3 日

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

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