JIRA是Atlassian公司出品的項目與事務跟蹤工具,被普遍應用於缺陷跟蹤、客戶服務、需求收集、流程審批、任務跟蹤、項目跟蹤和敏捷管理等工做領域。php
1、搭建環境準備html
Centos7.3下安裝jira環境,所需的安裝包:java
一、mysql-5.7.17.tar.gzmysql
下載地址:http://mirrors.sohu.com/mysql/MySQL-5.7/mysql-5.7.17.tar.gz linux
下載地址:https://downloads.mysql.com/archives/get/file/mysql-5.7.17.tar.gznginx
二、jdk1.7.0_25.tar.gz web
下載地址:http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.htmlsql
三、apache-tomcat-7.0.78.tar.gz數據庫
下載地址:http://apache.fayea.com/tomcat/tomcat-7/v7.0.78/bin/apache-tomcat-7.0.78.tar.gzapache
四、atlassian-jira-6.3.6.tar.gz
下載地址:https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-6.3.6.tar.gz
五、mysql-connector-java-5.1.42.zip(jdbc驅動包)
下載地址:http://download.csdn.net/detail/my_douer/9857794
六、JIRA-Language-STD-CN.jar(漢化包)
下載地址:http://download.csdn.net/detail/my_douer/9857851
七、Jira.zip(破解補丁 )
下載地址:http://download.csdn.net/detail/my_douer/9858240
2、安裝軟件
一、安裝mysql數據庫
[root@server jira_ins]# wget -c http://mirrors.sohu.com/mysql/MySQL-5.7/mysql-5.7.17.tar.gz [root@server jira_ins]# tar -zxf mysql-5.7.17.tar.gz [root@server jira_ins]# cd mysql-5.7.17 [root@server mysql-5.7.17]# yum install cmake ncurses-devel -y [root@server mysql-5.7.17]#cmake \ -DCMAKE_INSTALL_PREFIX=/usr/local/mysql \ -DMYSQL_DATADIR=/usr/local/mysql/data \ -DSYSCONFDIR=/etc \ -DWITH_MYISAM_STORAGE_ENGINE=1 \ -DWITH_INNOBASE_STORAGE_ENGINE=1 \ -DWITH_MEMORY_STORAGE_ENGINE=1 \ -DWITH_READLINE=1 \ -DMYSQL_UNIX_ADDR=/usr/local/mysql/mysql.sock \ -DMYSQL_TCP_PORT=3306 \ -DENABLED_LOCAL_INFILE=1 \ -DWITH_PARTITION_STORAGE_ENGINE=1 \ -DEXTRA_CHARSETS=all \ -DDEFAULT_CHARSET=utf8 \ -DDEFAULT_COLLATION=utf8_general_ci \ -DDOWNLOAD_BOOST=1 \ -DWITH_BOOST=/usr/local/boost
--------------------------------------------------------------- CMake Warning: Manually-specified variables were not used by the project: WITH_MEMORY_STORAGE_ENGINE WITH_READLINE -- Build files have been written to: /root/mysql-5.7.17 ---------------------------------------------------------------
出現上面的結果表示預編譯成功!
[root@server mysql-5.7.17]# make -j grep 'processor' /proc/cpuinfo | wc -l [root@server mysql-5.7.17]# make -j grep 'processor' /proc/cpuinfo | wc -l install
檢查系統是否已經有mysql用戶,若是沒有則建立
[root@server mysql-5.7.17]# cat /etc/passwd | grep mysql [root@server mysql-5.7.17]# cat /etc/group | grep mysql
建立mysql用戶(可是不能使用mysql帳號登錄系統)
[root@server mysql-5.7.17]# groupadd mysql [root@server mysql-5.7.17]# useradd -g mysql -s /sbin/nologin mysql
修改權限
[root@server mysql-5.7.17]# chown -R mysql:mysql /usr/local/mysql
[root@server mysql-5.7.17]# cp /usr/local/mysql/support-files/my-default.cnf /etc/my.cnf [root@server mysql-5.7.17]# cp /usr/local/mysql/support-files/mysql.server /etc/init.d/mysqld
[root@server mysql-5.7.17]# vim /etc/init.d/mysqld //指定安裝目錄及數據目錄 basedir=/usr/local/mysql datadir=/usr/local/mysql/data
[root@server mysql-5.7.17]# chkconfig --add mysqld [root@server mysql-5.7.17]# chkconfig --level 35 mysqld on
進入安裝路徑,執行初始化配置腳本,建立系統自帶的數據庫和表
[root@server mysql-5.7.17]# /usr/local/mysql/bin/mysqld --user=mysql --datadir=/usr/local/mysql/data --basedir=/usr/local/mysql/
生成的初始密碼位於:
方法一:
[root@centos ~]# grep 'temporary password' /var/log/mysqld.log 2017-05-31T17:25:46.311098Z 1 [Note] A temporary password is generated for root@localhost: MtPqF0/oN5zo
即初始密碼爲 MtPqF0/oN5zo (密碼是隨機產生的,每臺機器產生的都不同哦)
方法二:
[root@localhost src]# cat /root/.mysql_secret # The random password set for the root userat Fri Jan 10 20:00:34 2014 (local time): aJqZsA2m
這裏的aJqZsA2m就是生成的root隨機密碼啦
[root@server mysql-5.7.17]# mysql -uroot -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 4 Server version: 5.7.11 Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> show databases;ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
登陸以後 第一步必須先修改密碼,不然其餘操做都執行不了。
修改密碼的方法:
mysql> alter user root@localhost identified by 'XXXXXXXXX'; Query OK, 0 rows affected (0.00 sec) mysql> quit
二、安裝jdk環境
[root@server jira_ins]# ls jdk1.7.0_25.tar.gz [root@server jira_ins]# tar -zxf jdk1.7.0_25.tar.gz [root@server jira_ins]# ls jdk1.7.0_25 jdk1.7.0_25.tar.gz [root@server jira_ins]# mkdir /usr/local/java [root@server jira_ins]# mv jdk1.7.0_25 /usr/local/java/ [root@server jira_ins]# cd /usr/local/java/ [root@server java]# pwd /usr/local/java [root@server java]# ls jdk1.7.0_25 [root@server java]# cd jdk1.7.0_25/ [root@server jdk1.7.0_25]# ls bin jre README.html THIRDPARTYLICENSEREADME.txt COPYRIGHT lib release db LICENSE src.zip include man THIRDPARTYLICENSEREADME-JAVAFX.txt [root@server jdk1.7.0_25]# vim /etc/profile //配置環境變量,在/et/profile文件末尾添加下面四句 JAVA_HOME=/usr/local/java/jdk1.7.0_25 CLASSPATH=$JAVA_HOME/lib:$JAVA_HOME/jre/lib PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin export PATH CLASSPATH JAVA_HOME [root@server jdk1.7.0_25]# source /etc/profile //使配置的環境變量生效 [root@server jdk1.7.0_25]# java -version //測試 java version "1.7.0_25" Java(TM) SE Runtime Environment (build 1.7.0_25-b15) Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode) [root@server jdk1.7.0_25]# javac -version javac 1.7.0_25
三、安裝Tomcat
[root@server jira_ins]# ls apache-tomcat-7.0.78.tar.gz jdk1.7.0_25.tar.gz [root@server jira_ins]# tar -zxf apache-tomcat-7.0.78.tar.gz [root@server jira_ins]# ls apache-tomcat-7.0.78 jdk1.7.0_25.tar.gz apache-tomcat-7.0.78.tar.gz [root@server jira_ins]# mv apache-tomcat-7.0.78 /usr/local/tomcat [root@server jira_ins]# cd /usr/local/tomcat/ [root@server tomcat]# ls bin lib logs RELEASE-NOTES temp work conf LICENSE NOTICE RUNNING.txt webapps [root@server tomcat]# ps -ef | grep tomcat root 5082 3961 0 22:49 pts/0 00:00:00 grep --color=auto tomcat [root@server151example tomcat]# cd bin/ [root@server bin]# ls bootstrap.jar daemon.sh startup.sh catalina.bat digest.bat tomcat-juli.jar catalina.sh digest.sh tomcat-native.tar.gz catalina-tasks.xml setclasspath.bat tool-wrapper.bat commons-daemon.jar setclasspath.sh tool-wrapper.sh commons-daemon-native.tar.gz shutdown.bat version.bat configtest.bat shutdown.sh version.sh configtest.sh startup.bat [root@server bin]# ./startup.sh Using CATALINA_BASE: /usr/local/tomcat Using CATALINA_HOME: /usr/local/tomcat Using CATALINA_TMPDIR: /usr/local/tomcat/temp Using JRE_HOME: /usr/local/java/jdk1.7.0_25 Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar Tomcat started. [root@server bin]# ps -ef | grep tomcat root 5101 1 14 22:52 pts/0 00:00:06 /usr/local/java/jdk1.7.0_25/bin/java -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/usr/local/tomcat/endorsed -classpath /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar -Dcatalina.base=/usr/local/tomcat -Dcatalina.home=/usr/local/tomcat -Djava.io.tmpdir=/usr/local/tomcat/temp org.apache.catalina.startup.Bootstrap start root 5149 3961 0 22:53 pts/0 00:00:00 grep --color=auto tomcat [root@server bin]# netstat -anlp | grep 8080 tcp6 0 0 :::8080 :::* LISTEN 5101/java [root@server bin]# netstat -anlp | grep 8005 tcp6 0 0 127.0.0.1:8005 :::* LISTEN 5101/java
四、安裝jira環境
[root@server jira_ins]# ls apache-tomcat-7.0.78.tar.gz jdk1.7.0_25.tar.gz atlassian-jira-6.3.6.tar.gz [root@server jira_ins]# tar -zxf atlassian-jira-6.3.6.tar.gz [root@server jira_ins]# ls apache-tomcat-7.0.78.tar.gz jdk1.7.0_25.tar.gz atlassian-jira-6.3.6-standalone atlassian-jira-6.3.6.tar.gz [root@server jira_ins]# mv atlassian-jira-6.3.6-standalone /usr/local/ [root@server jira_ins]# cd /usr/local/ [root@server local]# ls atlassian-jira-6.3.6-standalone games lib64 mysql share zabbix bin include libexec nginx src boost java libmemcached php7 src.zip etc lib man sbin tomcat [root@server local]# cd atlassian-jira-6.3.6-standalone/ [root@server atlassian-jira-6.3.6-standalone]# ls atlassian-jira conf lib NOTICE README.txt tomcat-docs work bin external-source logs README.html temp webapps [root@server atlassian-jira-6.3.6-standalone]# cd conf/ [root@server conf]# ls catalina.policy context.xml server.xml web.xml catalina.properties logging.properties tomcat-users.xml [root@server conf]# vim server.xml //修改jira的啓動端口,8005和8080端口都從新修改成8006和8081 [root@server151example conf]# cd ../ //配置jira_home [root@server151example atlassian-jira-6.3.6-standalone]# ls atlassian-jira conf lib NOTICE README.txt tomcat-docs work bin external-source logs README.html temp webapps [root@server151example atlassian-jira-6.3.6-standalone]# cd atlassian-jira/WEB-INF/classes/ [root@server151example classes]# vim jira-application.properties jira.home = /usr/local/atlassian-jira-6.3.6-standalone //修改jira數據的存放位置 [root@server conf]# lsof -i:8081 //查看8081端口狀況 [root@server conf]# cd ../ [root@server atlassian-jira-6.3.6-standalone]# ls atlassian-jira conf lib NOTICE README.txt tomcat-docs work bin external-source logs README.html temp webapps [root@server atlassian-jira-6.3.6-standalone]# cd bin/ [root@server bin]# ls apr jirabanner.txt startup.bat bootstrap.jar jira-configurator.jar startup.sh catalina.bat permgen.bat stop-jira.bat catalina.sh permgenservice.bat stop-jira.sh catalina-tasks.xml permgen.sh tomcat7.exe commons-daemon.jar service.bat tomcat7.exe.x64 commons-daemon-native.tar.gz setclasspath.bat tomcat7w.exe config.bat setclasspath.sh tomcat-juli.jar config.sh setenv.bat tomcat-native.tar.gz configtest.bat setenv.sh tool-wrapper.bat configtest.sh shutdown.bat tool-wrapper.sh daemon.sh shutdown.sh user.sh digest.bat start-jira.bat version.bat digest.sh start-jira.sh version.sh
[root@server bin]# ./start-jira.sh //啓動jira To run JIRA in the foreground, start the server with start-jira.sh -fg executing as current user ..... .... .NMMMD. ... .8MMM. $MMN,.. ~MMMO. .?MMM. .MMM?. OMMMMZ. .,NMMMN~ .IMMMMMM. .NMMMN. .MMMMMN, ,MMMMMM$.. 3MD ..ZMMMMMM. =NMMMMMM,. .,MMMMMMD. .MMMMMMMM8MMMMMMM, .ONMMMMMMMMMMZ. ,NMMMMMMM8. .:,.$MMMMMMM .IMMMM..NMMMMMD. .8MMMMM: :NMMMMN. .MMMMMM. .MMMMM~. .MMMMMN .MMMMM?. Atlassian JIRA Version : 6.3.6 Detecting JVM PermGen support... PermGen switch is supported. Setting to 384m If you encounter issues starting or stopping JIRA, please see the Troubleshooting guide at http://confluence.atlassian.com/display/JIRA/Installation+Troubleshooting+Guide Server startup logs are located in /usr/local/atlassian-jira-6.3.6-standalone/logs/catalina.out Using CATALINA_BASE: /usr/local/atlassian-jira-6.3.6-standalone Using CATALINA_HOME: /usr/local/atlassian-jira-6.3.6-standalone Using CATALINA_TMPDIR: /usr/local/atlassian-jira-6.3.6-standalone/temp Using JRE_HOME: /usr/local/java/jdk1.7.0_25 Using CLASSPATH: /usr/local/atlassian-jira-6.3.6-standalone/bin/bootstrap.jar:/usr/local/atlassian-jira-6.3.6-standalone/bin/tomcat-juli.jar Using CATALINA_PID: /usr/local/atlassian-jira-6.3.6-standalone/work/catalina.pid Tomcat started.
[root@server bin]# ps -ef | grep tomcat root 5101 1 0 22:52 pts/0 00:00:11 /usr/local/java/jdk1.7.0_25/bin/java -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/usr/local/tomcat/endorsed -classpath /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar -Dcatalina.base=/usr/local/tomcat -Dcatalina.home=/usr/local/tomcat -Djava.io.tmpdir=/usr/local/tomcat/temp org.apache.catalina.startup.Bootstrap start root 5321 1 70 23:38 pts/0 00:00:16 /usr/local/java/jdk1.7.0_25/bin/java -Djava.util.logging.config.file=/usr/local/atlassian-jira-6.3.6-standalone/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -XX:MaxPermSize=384m -Xms384m -Xmx768m -Djava.awt.headless=true -Datlassian.standalone=JIRA -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Dmail.mime.decodeparameters=true -Dorg.dom4j.factory=com.atlassian.core.xml.InterningDocumentFactory -XX:+PrintGCDateStamps -XX:-OmitStackTraceInFastThrow -Djava.endorsed.dirs=/usr/local/atlassian-jira-6.3.6-standalone/endorsed -classpath /usr/local/atlassian-jira-6.3.6-standalone/bin/bootstrap.jar:/usr/local/atlassian-jira-6.3.6-standalone/bin/tomcat-juli.jar -Dcatalina.base=/usr/local/atlassian-jira-6.3.6-standalone -Dcatalina.home=/usr/local/atlassian-jira-6.3.6-standalone -Djava.io.tmpdir=/usr/local/atlassian-jira-6.3.6-standalone/temp org.apache.catalina.startup.Bootstrap start root 5334 3961 0 23:38 pts/0 00:00:00 grep --color=auto tomcat [root@server bin]# netstat -anlp | grep 8081 tcp6 0 0 :::8081 :::* LISTEN 5321/java [root@server bin]# netstat -anlp | grep 8006 tcp6 0 0 127.0.0.1:8006 :::* LISTEN 5321/java [root@server bin]# lsof -i:8081 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME java 5321 root 54u IPv6 165811 0t0 TCP *:tproxy (LISTEN) [root@server bin]# lsof -i:8080 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME java 5101 root 42u IPv6 161392 0t0 TCP *:webcache (LISTEN)
看到jira所在的Tomcat容器 已經啓動成功。
打開網址http://192.XXX.XXX.XXX:8081/,報錯以下:
日誌報錯:
***************************************************************************************************************************************************************************************
Configured jira.home '/usr/local/atlassian-jira-6.3.6-standalone' must not be a parent directory of the webapp servlet path '/usr/local/atlassian-jira-6.3.6-standalone/atlassian-jira'
***************************************************************************************************************************************************************************************
從新設置一下jira.home,設置成不在本jira安裝軟件目錄下,而後重啓jira服務,打開jira網址,OK了,在WEB-INF/classes/jira-application.properties文件設置jira.home = 建立好的一個空文件夾,臨時文件、上傳的附件等都放在這個目錄。 注意不要和JIRA安裝目錄同樣。
[root@server local]# mkdir jira_home [root@server local]# cd atlassian-jira-6.3.6-standalone/atlassian-jira/WEB-INF/classes/ [root@server classes]# vim jira-application.properties jira.home = /usr/local/jira_home
[root@server classes]# cd ../../.. [root@server atlassian-jira-6.3.6-standalone]# ls atlassian-jira conf lib NOTICE README.txt tomcat-docs work bin external-source logs README.html temp webapps [root@server atlassian-jira-6.3.6-standalone]# cd bin/ [root@server bin]# ls apr digest.sh startup.bat atlassian-jira.log jirabanner.txt startup.sh atlassian-jira-security.log jira-configurator.jar stop-jira.bat bootstrap.jar permgen.bat stop-jira.sh catalina.bat permgenservice.bat tomcat7.exe catalina.sh permgen.sh tomcat7.exe.x64 catalina-tasks.xml service.bat tomcat7w.exe commons-daemon.jar setclasspath.bat tomcat-juli.jar commons-daemon-native.tar.gz setclasspath.sh tomcat-native.tar.gz config.bat setenv.bat tool-wrapper.bat config.sh setenv.sh tool-wrapper.sh configtest.bat shutdown.bat user.sh configtest.sh shutdown.sh version.bat daemon.sh start-jira.bat version.sh digest.bat start-jira.sh [root@server bin]# ./stop-jira.sh //重啓jira [root@server bin]# ./start-jira.sh
[root@server bin]# ps -ef | grep jira //檢查jira是否啓動 root 6226 1 80 16:52 pts/0 00:00:29 /usr/local/java/jdk1.7.0_25/bin/java -Djava.util.logging.config.file=/usr/local/atlassian-jira-6.3.6-standalone/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -XX:MaxPermSize=384m -Xms384m -Xmx768m -Djava.awt.headless=true -Datlassian.standalone=JIRA -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Dmail.mime.decodeparameters=true -Dorg.dom4j.factory=com.atlassian.core.xml.InterningDocumentFactory -XX:+PrintGCDateStamps -XX:-OmitStackTraceInFastThrow -Djava.endorsed.dirs=/usr/local/atlassian-jira-6.3.6-standalone/endorsed -classpath /usr/local/atlassian-jira-6.3.6-standalone/bin/bootstrap.jar:/usr/local/atlassian-jira-6.3.6-standalone/bin/tomcat-juli.jar -Dcatalina.base=/usr/local/atlassian-jira-6.3.6-standalone -Dcatalina.home=/usr/local/atlassian-jira-6.3.6-standalone -Djava.io.tmpdir=/usr/local/atlassian-jira-6.3.6-standalone/temp org.apache.catalina.startup.Bootstrap start root 6262 3961 0 16:53 pts/0 00:00:00 grep --color=auto jira
重啓jira服務後,繼續刷新http://192.XXX.XXX.XXX:8081/,
此時設置好的jira.home數據儲存目錄下面就生成目錄文件了。
[root@server local]# cd jira_home/ [root@server jira_home]# pwd /usr/local/jira_home [root@server jira_home]# ls caches data export import log plugins tmp
5.添加漢化插件
首先下載漢化插件包
http://download.csdn.net/detail/my_douer/9857851
或者http://download.csdn.net/detail/my_douer/9860744
將下載到的JIRA-Language-STD-CN.jar漢化包(或者JIRA-6.3.3-language-pack-zh_CN.jar)拷貝到linux中jira的安裝目錄/usr/local/atlassian-jira-6.3.6-standalone/atlassian-jira/WEB-INF/atlassian-bundled-plugins下面,而後重啓jira服務。
[root@server bin]# pwd /usr/local/atlassian-jira-6.3.6-standalone/bin [root@server bin]# ./stop-jira.sh [root@server bin]# ./start-jira.sh
繼續刷新http://192.168.10.151:8081/secure/SetupDatabase!default.jspa,就會出現漢化界面。若是沒有出現,不打緊,後面咱們經過web端進行漢化插件的添加。
六、數據庫對jira受權,創建jira數據庫
[root@server jira_ins]# mysql -uroot -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 6 Server version: 5.7.17-log Source distribution Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema| | mysql | | sys | | test | +--------------------+ 8 rows in set (0.14 sec) mysql> create database jira default character set utf8; Query OK, 1 row affected (0.10 sec) mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema| | jira | | mysql | | sys | | test | +--------------------+ 9 rows in set (0.00 sec) mysql> GRANT ALL PRIVILEGES ON jira.* TO jira@'%' identified by 'jira123456'; Query OK, 0 rows affected, 1 warning (0.22 sec) mysql> GRANT ALL PRIVILEGES ON jira.* TO jira@127.0.0.1 identified by 'jira123456'; Query OK, 0 rows affected, 1 warning (0.01 sec) mysql> quit Bye
七、訪問http://192.168.10.151:8081/,進行配置。
此時報錯,找不到類: com.mysql.jdbc.Driver。
mysql-connector-java-5.1.42-bin.jar複製到/usr/local/atlassian-jira-6.3.6-standalone/atlassian-jira/WEB-INF/lib目錄下面,而後重啓(jira最高只支持到mysql5.6 ):
[root@server lib]# rz
[root@server lib]# ll mysql-connector-java-5.1.42-bin.jar
-rw-r--r--. 1 root root 996444 Apr 17 20:23 mysql-connector-java-5.1.42-bin.jar
[root@server bin]# ./stop-jira.sh
[root@server bin]# ./start-jira.sh
接着訪問http://192.168.10.151:8081/,獲得測試鏈接成功,
下一步,填寫設置我的信息
輸入臨時受權碼,進行註冊:
而後填入如下的key:
AAABBw0ODAoPeNptkFtLxDAQhd/zKwI+R9Kwy66FPKxthGhvtF0p4kuso0a6sUwvuP/edissyj4MD
HPOfHOYqzu0tICWeoJy4a+FzzkNwpIK7q1ICF2Ntu3tl5P3Ot89+1SNphnMPCEBwqkJTQ9y9jN+w
zxBPi2a68jW4DpQr/a0rZJS5VmuC0XOBNnjAH/s5bGFxBxABmkcqzzQu2jRTd3bEZaFZvE+AnYzR
JDYWNeDM64G9d1aPJ4TeXxOlOK7cbZbjrbNgkyGwwtg+rbvJpBkHikAR0Adytt0XzFV7R5Y+qQzV
kWZIoVK5FQsWq03YrvdkN/Ekz3S4SXlcpRswPrDdPD/aT+P1nzDMC0CFQCM9+0LlHVNnZQnSTwuR
O3eK+2gVgIUCteTs4Q3khIgrnsY64hxYB/d8bM=X02dh
參考補充
參考自:http://ilanni.blog.51cto.com/526870/1884084
注意:上圖中的Mode中,咱們在此使用的是Private模式,在這個模式下,用戶的建立須要由管理員建立。而在Public模式下,用戶是能夠本身進行註冊。
下面這個頁面是須要咱們輸入jira的license,以下:
注意:上圖中的Server ID:BRWS-OZIC-9BTE-YI9F
由於咱們沒有正式的license,因此須要咱們在jira官網註冊一個帳號,而後利用這個帳號申請一個能夠試用30天的license,以下:
注意:這個圖中的Server ID就是咱們上面剛剛截圖的Server ID。
經過上圖,咱們能夠很明顯的看到試用license已經申請成功。
註冊完以後,填寫管理員帳戶和密碼
設置郵箱通知
以後,JIRA安裝正式完成,以下自動跳轉到JIRA管理頁面,以下所示:
下來進行漢化,添加插件-----中文插件
而後選擇剛上傳的中文字體。
破解受權:
點擊右上角齒輪形狀的管理圖標,選擇「系統(system)」,再選擇「受權(License)」,看到當前的License信息,以下所示:
將下載好的atlassian-extras-2.2.2.jar替換到jira安裝目錄/usr/local/atlassian-jira-6.3.6-standalone/atlassian-jira/WEB-INF/lib下的同名jar包。
將atlassian-universal-plugin-manager-plugin-2.17.13.jar替換到jira安裝目錄/usr/local/atlassian-jira-6.3.6-standalone/atlassian-jira/WEB-INF/atlassian-bundled-plugins下的同名jar包。
接着進行jira服務的重啓。
填寫受權碼,受權碼參數範例以下:
Description=JIRA: Commercial,
CreationDate=你的安裝日期,格式(yyyy-mm-dd),
jira.LicenseEdition=ENTERPRISE,
Evaluation=false,
jira.LicenseTypeName=COMMERCIAL,
jira.active=true,
licenseVersion=2,
MaintenanceExpiryDate=你想設置的失效日期如:2099-12-31,
Organisation=joiandjoin,
SEN=你申請到的SEN注意沒有前綴LID,
ServerID=你申請到的ServerID,
jira.NumberOfUsers=-1,
LicenseID=LID你申請到的SEN,注意LID前綴不要丟掉,
LicenseExpiryDate=你想設置的失效日期如:2099-12-31,
PurchaseDate=你的安裝日期,格式(yyyy-mm-dd)
本次安裝受權碼實例爲:
Description=JIRA: Commercial,
CreationDate=2017-06-01,
jira.LicenseEdition=ENTERPRISE,
Evaluation=false,
jira.LicenseTypeName=COMMERCIAL,
jira.active=true,
licenseVersion=2,
MaintenanceExpiryDate=2099-12-31,
Organisation=pl,
SEN=SEN-L4572887,
ServerID= BSDM-SW1T-IPPX-F4DB,
jira.NumberOfUsers=-1,
LicenseID=LIDSEN-L4572887,
LicenseExpiryDate=2099-12-31,
PurchaseDate=2017-06-01
詳細文件請下載:http://download.csdn.net/detail/my_douer/9858240
將以上受權碼信息填入受權碼輸入框,點擊「增長」按鈕,以下所示:
以後,看到受權信息更新了,就表示破解成功,會看到以下成功信息, 以下圖:
受權完成以後,Jira破解完成。
參考文章:http://www.cnblogs.com/wych/p/4105551.html
http://blog.itpub.net/26230597/viewspace-1275597/ (包含有恢復數據的介紹)
http://ilanni.blog.51cto.com/526870/1884084
https://allgo.cc/2015/08/18/centos%E4%B8%8B%E5%AE%89%E8%A3%85jira/