Centos7上安装、破解bamboo6.0.3
1、下载bamboo安装包,地址:https://www.atlassian.com/software/bamboo/download?_ga=2.65378349.245489969.1512876945-1569392796.1512635383(选择tar.gz)
2、服务器上安装jdk1.8
3、在一个较大的分区下,新建一个文件夹,例如/home/CI-new,将安装包拷贝到该文件夹下,并解压。
[root@host-10-0-251-216 ~]# cd /home/CI-new/ [root@host-10-0-251-216 CI-new]# ls atlassian-bamboo-6.0.3.tar.gz [root@host-10-0-251-216 CI-new]# tar -xvzf atlassian-bamboo-6.0.3.tar.gz [root@host-10-0-251-216 CI-new]# ls atlassian-bamboo-6.0.3 atlassian-bamboo-6.0.3.tar.gz
4、/home/CI-new文件夹下新建一个bamboo_home文件夹
[root@host-10-0-251-216 CI-new]# mkdir bamboo_home [root@host-10-0-251-216 CI-new]# ls atlassian-bamboo-6.0.3 atlassian-bamboo-6.0.3.tar.gz bamboo_home [root@host-10-0-251-216 CI-new]# cd bamboo_home/ [root@host-10-0-251-216 bamboo_home]# pwd /home/CI-new/bamboo_home [root@host-10-0-251-216 bamboo_home]#
5、拷贝atlassian-extras-decoder-v2-3.3.0.jar(链接:https://pan.baidu.com/s/1a0NJl58cF4JKu4T01fIDXA 密码:nfdy)到/home/CI-new/atlassian-bamboo-6.0.3/atlassian-bamboo/WEB-INF/lib文件夹下,覆盖原始的jar包(破解需要)
6、编辑配置文件,配置bamboo-home(第四步中创建的文件夹路径)
[root@host-10-0-251-216 ~]# cat /home/CI-new/atlassian-bamboo-6.0.3/atlassian-bamboo/WEB-INF/classes/bamboo-init.properties ## You can specify your bamboo.home property here or in your system environment variables. bamboo.home=/home/CI-new/bamboo_home
7、编辑配置文件,配置bamboo服务端口。编辑 /home/CI-new/atlassian-bamboo-6.0.3/conf/server.xml ,将其中的8085端口改为你希望的端口(例如8216),保存退出。
8、启动bamboo
[root@host-10-0-251-216 ~]# cd /home/CI-new/atlassian-bamboo-6.0.3/bin/ [root@host-10-0-251-216 bin]# ls bamboobanner.txt catalina.sh commons-daemon.jar digest.sh setenv.sh start-bamboo.sh stop-bamboo.sh tomcat-native.tar.gz version.sh bootstrap.jar catalina-tasks.xml commons-daemon-native.tar.gz setclasspath.sh shutdown.sh startup.sh tomcat-juli.jar tool-wrapper.sh [root@host-10-0-251-216 bin]# ./start-bamboo.sh To run Bamboo in the foreground, start the server with start-bamboo.sh -fg Server startup logs are located in /home/CI-new/atlassian-bamboo-6.0.3/bin/logs/catalina.out Bamboo Server Edition Version : 6.0.3 If you encounter issues starting or stopping Bamboo Server, please see the Troubleshooting guide at https://confluence.atlassian.com/display/BAMBOO/Installing+and+upgrading+Bamboo Using CATALINA_BASE: /home/CI-new/atlassian-bamboo-6.0.3 Using CATALINA_HOME: /home/CI-new/atlassian-bamboo-6.0.3 Using CATALINA_TMPDIR: /home/CI-new/atlassian-bamboo-6.0.3/temp Using JRE_HOME: /usr Using CLASSPATH: /home/CI-new/atlassian-bamboo-6.0.3/bin/bootstrap.jar:/home/CI-new/atlassian-bamboo-6.0.3/bin/tomcat-juli.jar Tomcat started. [root@host-10-0-251-216 bin]#
9、访问bamboo界面:hostIp:8216,在界面上会显示serverID例如:Server id BUS3-0CBR-GDG7-DKUY
10、破解license
- 破解原理详见:http://www.jianshu.com/p/20dbcf85f962?utm_campaign=haruki&utm_content=note&utm_medium=reader_share&utm_source=weixin
- 搭建开发环境(jdk8),使AtlassianLicenseGenerator.java(链接:https://pan.baidu.com/s/1mp3luH7kdkAOY1khAZuPyQ 密码:5msg)能够运行
- 执行main函数,输入对应的信息,即可得到license。将license录入到系统中,即完成破解
11、license验证之后,按照要求输入管理员信息即可