Difference between revisions of "CentOS 7.x Install Bitbucket"
From Notes_Wiki
m |
m |
||
Line 1: | Line 1: | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x Web Based Tools|Web Based Tools]] > [[CentOS 7.x Atlassian products|Atlassian products]] > [[CentOS 7.x Install bitbucket]] | |||
To install bitbucket on CentOS 7.x use: | To install bitbucket on CentOS 7.x use: | ||
Line 69: | Line 68: | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x Web Based Tools|Web Based Tools]] > [[CentOS 7.x Atlassian products|Atlassian products]] > [[CentOS 7.x Install bitbucket]] |
Revision as of 09:32, 25 August 2022
Home > CentOS > CentOS 7.x > Web Based Tools > Atlassian products > CentOS 7.x Install bitbucket
To install bitbucket on CentOS 7.x use:
- yum -y install git
- 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
- Add execute permissions to downloaded installer binary file
- chmod a+x atlassian-bitbucket-4.12.0-x64.bin
- Run the installer as root user:
- ./atlassian-bitbucket-4.12.0-x64.bin
- Follow the prompts to install BitBucket. Once the installation is successful, it will give Bitbucket login URL.
- Install & Configure database
- Install mariadb
- yum install -y mariadb-server
- Configure mariadb to start on system boot and also start it for current run:
- systemctl start mariadb
- systemctl enable mariadb
- Harden mariadb installation and configure mariadb root password:
- mysql_secure_installation
- Add below parameters in '/etc/my.cnf' file
- default-storage-engine=INNODB
- max_allowed_packet=256M
- 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
- Restart database so that configuration changes in /etc/my.cnf take effect
- systemctl resart mariadb
- Install mariadb
- Copy MySQL JDBC driver to application server
- 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
- unzip mysql-connector-java-5.x.x-bin.jar
- 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/
- Download JDBC driver form http://dev.mysql.com/downloads/connector/j/
- Restart Bitbucket service.
- <bitbucket installation directory>/bin/
- ./stop-bitbucket.sh
- ./start-bitbucket.sh
- 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
Steps contributed by Pavan Ponamala
Home > CentOS > CentOS 7.x > Web Based Tools > Atlassian products > CentOS 7.x Install bitbucket