CentOS 7.x Install Bitbucket

From Notes_Wiki
Revision as of 16:09, 23 January 2017 by Saurabh (talk | contribs)

<yambe:breadcrumb>CentOS 7.x Atlassian products</yambe:breadcrumb>

CentOS 7.x Install bitbucket

To install bitbucket on CentOS 7.x use:

  1. yum -y install git
  2. Download the installer from https://www.atlassian.com/software/bitbucket/download?. Example download URL is https://www.atlassian.com/software/stash/downloads/binary/atlassian-bitbucket-4.12.1-x64.bin
  3. Add execute permissions to downloaded installer binary file
    chmod a+x atlassian-bitbucket-4.12.0-x64.bin
  4. Run the installer as root user:
    ./atlassian-bitbucket-4.12.0-x64.bin
  5. Follow the prompts to install BitBucket. Once the installation is successful, it will give Bitbucket login URL.
  6. Install & Configure database
    1. Install mariadb
      yum install -y mariadb-server
    2. Configure mariadb to start on system boot and also start it for current run:
      systemctl start mariadb
      systemctl enable mariadb
    3. Harden mariadb installation and configure mariadb root password:
      mysql_secure_installation
    4. Add below parameters in '/etc/my.cnf' file
      default-storage-engine=INNODB
      max_allowed_packet=256M
    5. Create database and give permissions
      mysql -u root -p
      CREATE DATABASE bitbucket CHARACTER SET utf8 COLLATE utf8_bin;
      grant all privileges on bitbucket.* to 'bitbucket'@'%' identified by '<secret>';
      flush privileges;
      exit
    6. Restart database so that configuration changes in /etc/my.cnf take effect
      systemctl resart mariadb
  7. Copy MySQL JDBC driver to application server
    1. Download JDBC driver form http://dev.mysql.com/downloads/connector/j/
      Example driver URL is http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.40.zip
    2. unzip mysql-connector-java-5.x.x-bin.jar
    3. Copy or move the MySQL JDBC driver jar to the <Bitbucket installation directory>/lib/ directory
      mv mysql-connector-java-5.1.40-bin.jar /opt/atlassian/bitbucket/4.12.1/lib/
  8. Restart Bitbucket service.
    <bitbucket installation directory>/bin/
    ./stop-bitbucket.sh
    ./start-bitbucket.sh
  9. Login to web url and complete setup. At the end of setup, optionally integrate bitbucket with Jira for authentication. If central authentication with Jira is not desired then at least setup application links for easy switching between Jira and Bitbucket applications for the organization. Bitbucket might be accessible at http://<ipaddress>:7990 or http://<fqdn>:7990


Refer https://confluence.atlassian.com/bitbucketserver/install-bitbucket-server-from-an-archive-file-776640148.html

Steps contributed by Pavan Ponamala


<yambe:breadcrumb>CentOS 7.x Atlassian products</yambe:breadcrumb>