bitbucket迁移

/ 测试开发 / 0 条评论 / 1732浏览
==================bitbucket 迁移=====================
安装bitbucket
./atlassian-bitbucket-4.0.2.bin
默认目录:
/opt/atlassian/bitbucket/4.0.2/
/var/atlassian/application-data/bitbucket
HTTP Port Number
[7990]
Control Port Number
[8006]

#安装数据库
yum install postgresql-server
postgres❌26:26:PostgreSQL Server:/var/lib/pgsql:/bin/bash  #查看
#初始化数据库
postgresql-setup initdb #生成到目录/var/lib/pgsql/data
#只能通过postgres用户登录
su - postgres
psql
\password #设置密码
https://blog.csdn.net/feinifi/article/details/96474115?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-4.nonecase&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-4.nonecase

https://my.atlassian.com/license/evaluation 申请试用
http://172.16.30.17:7990/projects [email protected]

还原
#恢复命令  
停掉Bitbucket服务
#需先清空数据库和bitbucket家目录中的数据
rm -rf /var/atlassian/application-data/bitbucket
su - postgres ; psql ; drop database bitbucket;create database bitbucket
java -jar /path/to/bitbucket-restore-client.jar  bitbucket-xxxxx.tar
chown -R atlbitbucket:atlbitbucket /var/atlassian/application-data/bitbucket

#atlassian-agent - 破解
https://www.dqzboy.com/atlassian%e5%85%a8%e5%ae%b6%e6%a1%b6%e4%bb%a5%e5%8f%8a%e6%8f%92%e4%bb%b6%e7%a0%b4%e8%a7%a3%e8%af%a6%e7%bb%86%e6%95%99%e7%a8%8b/

#git离线安装 - 依赖库
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
yum install gcc perl-ExtUtils-MakeMaker
make prefix=/usr/local/git all
make prefix=/usr/local/git install
#安装postgresql-11
yum install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
yum install postgresql11-server
/usr/pgsql-11/bin/postgresql-11-setup initdb
listen_addresses = '*'                                                 #alluser
host    all             all             0.0.0.0/0                trust #远程访问
systemctl enable postgresql-11
systemctl start postgresql-11

#命令行启动
/usr/pgsql-11/bin/pg_ctl -D /var/lib/pgsql/11/data -l logfile start #启动
pg_ctl -D /var/lib/pgsql/data -l logfile start
rpm -ql postgresql11-11.8-1PGDG.rhel7.x86_64 #查询安装地址

netstat -anpt|grep postgre
pg_dumpall -p 8801 | psql -d postgres -p 5432
\c bitbucket
select * from pg_tables;

https://blog.csdn.net/weixin_33695450/article/details/91910560
create database bitbucket;
create user nqsky with password 'nqsky';
grant all on database bitbucket to nqsky;