Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to build bitbucket

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces how to build bitbucket, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.

Bitbucket build 1 jdk 8

If you have it, you don't need to install it. Here you install it in rpm mode (you don't have to configure environment variables).

Put the downloaded files in / usr/lib/java (you need to create a new java level directory for the first installation), rpm-ivh jdk-8u221-linux-x64.rpm

Finally, use java-version to see if it is installed.

Https://www.oracle.com/java/technologies/downloads/#java8

2 git

Bitbucket requires a version of git above 2.19.

1 check the git version of the system

If it is greater than 2.19, you can skip this step.

Git-version

2 Uninstall the git version of the system yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker yum remove gitgit-- version3 install git cd / usr/local wget https://www.kernel.org/pub/software/scm/git/git-2.30.1.tar.xz tar-vxf git-2.30.1.tar.xz cd git-2.30.1 make prefix=/usr/local/git all make prefix=/usr/local/ Git install echo "export PATH=$PATH:/usr/local/git/bin" > > / etc/profile source / etc/profile git-version3 mysql

Bitbucket requires that the mysql version be above 5.6.16.

Log in and execute the following sql after the installation is complete

Remember to configure the database to be used by bitbuket as bitbucket.

CREATE DATABASE bitbucket CHARACTER SET utf8 COLLATE utf8_bin;CREATE USER 'bitbucketuser'@'localhost' IDENTIFIED BY' password';GRANT ALL PRIVILEGES ON bitbucket.* TO 'bitbucketuser'@'localhost';FLUSH PRIVILEGES;QUIT3 bitbucket1 download bitbucket

Https://www.atlassian.com/zh/software/bitbucket/download-archives

After downloading, put the files in the / opt directory

Chmod + x atlassian-bitbucket-7.6.0-x64.bin./atlassian-bitbucket-7.6.0-x64.bin

Install optional default 1 or enter key.

2 download jdbc driver

Bitbucket only supports version 5. 1 drivers.

Https://downloads.mysql.com/archives/c-j/

Both zip and tar.gz are fine. Tie down and place the mysql-connector-java-5.1.xx.jar package in the / app/WEB-INF/lib/ directory under the bitbucket installation directory.

Default bitbucke installation directory: / opt/atlassian/bitbucket/7.6.0

Grant authority

Chown-R atlbitbucket. / opt/atlassian/bitbucket/7.6.0/app/WEB-INF/lib

3 cracking

Download agent

Https://zhile.io/2018/12/20/atlassian-license-crack.html

Cracking preparation

Place the atlassian-agent.jar file in the bin folder under the Bitbucket installation directory.

Default bitbucke installation directory: / opt/atlassian/bitbucket/7.6.0

Then output the following command anywhere:

Vim / etc/profile

Add the following statement at the end.

Export JAVA_OPTS= "- javaagent: your Bitbucket installation directory / bin/atlassian-agent.jar ${JAVA_OPTS}"

Crack

Start bitbucket

Service atlbitbucket status

Service atlbitbucket stop

Service atlbitbucket start

Go to port 7990 to initialize the bitbucket configuration. Select Extermal instead of internal as the Database option, otherwise cracking will fail.

Database name: bitbucket (step 3 for you to remember)

Database username: mysql account

Database password: mysql password

Finally, on the License and settings page, select "I have a Bitbucket license key".

Under the directory where atlassian-agent.jar is stored (under the bin folder under the Bitbucket installation directory), execute the following command, where XXXX-XXXX-XXXX-XXXX is replaced with the Server ID displayed on your own page:

Java-jar atlassian-agent.jar-m admin@mail.com-o org-p bitbucket-s XXXX-XXXX-XXXX-XXXX

Thank you for reading this article carefully. I hope the article "how to build bitbucket" shared by the editor will be helpful to everyone. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report