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驗證之後,按照要求輸入管理員資訊即可