1,执行165上同步附件脚本
rsyncjira.sh
2,利用jira系统备份于还原备份数据
3,在新的jira上修改
4,修改应用程序链接
5,查看
docker exec -it 5fcca825ce95 /bin/bash
update remotelink set URL=replace(URL,'ci.betalpha.com:61009','confluence.betalpha.com');
每次导入jira数据后要重新安装confluence 因为confluence使用jira的用户目录
重新安装confluence
卸载命令:
/opt/atlassian/confluence/uninstall
执行完会提示我们有些日志或者什么文件没有删除,如果是第一次装可以直接rm -rf 删掉。
The following files/directories were not deleted since they contain files with potentially important logs or configurations you may wish to retain. If you do not need to keep these files, however, you can safely delete these directories.
/opt/atlassian/confluence/logs
/opt/atlassian/confluence/confluence/WEB-INF/atlassian-bundled-plugins
/opt/atlassian/confluence/confluence/WEB-INF
/opt/atlassian/confluence/confluence
/opt/atlassian/confluence
同时删掉 confluence 的数据目录则算卸载干净:
rm -rf /var/atlassian/application-data/confluence/
创建数据库
CREATE USER 'confluenceuser'@'%' IDENTIFIED BY 'confluenceuser';
CREATE DATABASE confluence CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
GRANT ALL PRIVILEGES ON confluence.* TO 'confluenceuser'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;
/opt/atlassian/atlassian-confluence-7.4.6-x64.bin
回车
2
/data2t/atlassian/confluence
/data2t/atlassian/application-data/confluence
2
8091
回车
y
n
cp /data2t/atlassian/jira/lib/mysql-connector-java-8.0.27.jar /data2t/atlassian/confluence/confluence/WEB-INF/lib/
vi /data2t/atlassian/confluence/conf/server.xml
下载/data2t/atlassian/confluence/confluence/WEB-INF/lib/atlassian-extras-decoder-v2-3.4.1.jar 重命名atlassian-extras-2.4.jar
破解:
破解需要两部,一是破解文件,二是获取授权码
一、破解文件
在CentOS服务器上下载/opt/atlassian/confluence/confluence/WEB-INF/lib/atlassian-extras-decoder-v2-3.4.1.jar文件到本地重命名为atlassian-extras-2.4.jar
通过java运行confluence_keygen.jar(文中最开始的那个破解包,在windows上运行,需要在windows上安装好java)
选择.patch!找到刚才重命名的那个文件打开
打开后在当前目录下可以看到atlassian-extras-2.4.jar和atlassian-extras-2.4.bak两个文件,这里atlassian-extras-2.4.jar已经是破解好的了,将atlassian-extras-2.4.jar名字改回atlassian-extras-decoder-v2-3.4.1.jar
然后上传回CentOS服务器/opt/atlassian/confluence/confluence/WEB-INF/lib/目录,覆盖掉原来的atlassian-extras-decoder-v2-3.4.1.jar文件
此时要重启confluence服务:/etc/init.d/confluence restart
二、获取授权码
访问web页面,获取服务器ID,http://IP:8090
复制网页中的服务器ID,运行破解工具confluence_keygen.jar,破解复制Key到Confluence里,获得授权码,进行下一步
网友评论