Change the port Bitbucket listens on
Administer Bitbucket Data Center and Server
- Users and groups
- External user directories
- Global permissions
- Setting up your mail server
- Integrate with Atlassian applications
- Connect Bitbucket to an external database
- Migrating Bitbucket Server to another server
- Run Bitbucket in AWS
- Specify the Bitbucket base URL
- Configuring the application navigator
- Managing apps
- View and configure the audit log
- Update your license key
- Configuration properties
- Change Bitbucket's context path
- Data recovery and backups
- Disable HTTP(S) access to Git repositories
- Smart Mirroring
- Export and import projects and repositories
- Git Large File Storage
- Git Virtual File System (GVFS)
- Enable SSH access to Git repositories
- Use diff transcoding
- Change the port Bitbucket listens on
- Lockout recovery process
- Proxy and secure Bitbucket
- High availability for Bitbucket
- Diagnostics for third-party apps
- Enabling JMX counters for performance monitoring
- Enable debug logging
- Scaling Bitbucket Server
- Add a shortcut link to a repository
- Administer code search
- Adding additional storage for your repository data
- Add a system-wide announcement banner
- Configuring Project links across Applications
- Improving instance stability with rate limiting
- Use a CDN with Atlassian Data Center applications
- Managing personal access tokens
- Connecting to a 3rd party application using Application Links
- Setting a system-wide default branch name
- Automatically decline inactive pull requests
- Encrypt database password
- Advanced repository management
- Xcode for Bitbucket Server
- Data pipeline
On this page
- No related content found
Still need help?
The Atlassian Community is here for you.
You can change the port that Bitbucket Data Center and 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 listens on
- Navigate to your home directory.
shared/bitbucket.propertiesfile, add the
sever.portproperty (or edit it if a line for the
server.portproperty already exists), and set the value to the port number Bitbucket will run on. For example, to set to the port to
8080you would add:
Then save the file.
Restart Bitbucket so the change takes effect. See Start and stop Bitbucket.
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 on a Linux server and want to bind to privileged ports (those below 1024, for example port 80), you will need to start Bitbucket as root to successfully bind to the port. Or, you can bind Bitbucket to a port over 1024 and then configure iptables to redirect traffic from port 80 to the higher port.
- No related content found