Saturday, 8 December 2018

Atlassian BitButcket installation and configuration

In this tutorial we will cover Atlassian BitBucket installation and configuration on CentOS 7.X

1) Install openjdk on target machine.

yum install java-1.8.0-openjdk -y

2) Install git on target machine.

yum install git -y

3) Install PostgreSQL on target machine. 

Please follow below link to get help on installation and basic configuration of PostgreSQL. 
Installation and Configuration of PostgreSQL on CentOS 7


4) Please create bamboo database and user on PostgreSQL.

CREATE DATABASE bitbucket;

create user admin with encrypted password 'admin';

grant all privileges on database bitbucket to admin ;


5) Download the BitBucket binary file from Atlassian portal.

wget https://www.atlassian.com/software/stash/downloads/binary/atlassian-bitbucket-4.13.0-x64.bin

6) Run the binary file 

./atlassian-bitbucket-4.13.0-x64.bin

Provide inputs as per your requirements as mentioned below screenshots.



7) Once the installation is finished please access the BitBucket url http://localhost:7990 on your browser and follow below steps to configure BitBucket server on your machine.



Please select External Database for real-time project scenarios and provide PostgreSQL database details.



Please get a licence key from https://my.atlassian.com portal for BitBucket and place it on text field as mentioned below.


Please create a admin account for BitBucket server.


Login to your BitBucket server.

After successful login you should see below screen.