JIRA是Atlassian公司出品的项目与事务跟踪工具,被广泛应用于缺陷跟踪、客户服务、需求收集、流程审批、任务跟踪、项目跟踪和敏捷管理等工作领域。
一、搭建环境准备
Centos7.3下安装jira环境,所需的安装包:
1、mysql-5.7.17.tar.gz
下载地址:http://mirrors.sohu.com/mysql/MySQL-5.7/mysql-5.7.17.tar.gz
下载地址:https://downloads.mysql.com/archives/get/file/mysql-5.7.17.tar.gz
2、jdk1.7.0_25.tar.gz
下载地址:http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html
3、apache-tomcat-7.0.78.tar.gz
下载地址:http://apache.fayea.com/tomcat/tomcat-7/v7.0.78/bin/apache-tomcat-7.0.78.tar.gz
4、atlassian-jira-6.3.6.tar.gz
下载地址:https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-6.3.6.tar.gz
5、mysql-connector-java-5.1.42.zip(jdbc驱动包)
下载地址:http://download.csdn.net/detail/my_douer/9857794
6、JIRA-Language-STD-CN.jar(汉化包)
下载地址:http://download.csdn.net/detail/my_douer/9857851
7、Jira.zip(破解补丁 )
下载地址:http://download.csdn.net/detail/my_douer/9858240
二、安装软件
1、安装mysql数据库
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
[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
|
1
2
3
4
5
6
7
|
---------------------------------------------------------------
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
---------------------------------------------------------------
|
出现上面的结果表示预编译成功!
1
2
|
[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用户,如果没有则创建
1
2
|
[root@server mysql-5.7.17]
# cat /etc/passwd | grep mysql
[root@server mysql-5.7.17]
# cat /etc/group | grep mysql
|
创建mysql用户(但是不能使用mysql账号登陆系统)
1
2
|
[root@server mysql-5.7.17]
# groupadd mysql
[root@server mysql-5.7.17]
# useradd -g mysql -s /sbin/nologin mysql
|
修改权限
1
|
[root@server mysql-5.7.17]
# chown -R mysql:mysql /usr/local/mysql
|
1
2
|
[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
|
1
2
3
|
[root@server mysql-5.7.17]
# vim /etc/init.d/mysqld //指定安装目录及数据目录
basedir=/usr/local/mysql
datadir=/usr/local/mysql/data
|
1
2
|
[root@server mysql-5.7.17]
# chkconfig --add mysqld
[root@server mysql-5.7.17]
# chkconfig --level 35 mysqld on
|
进入安装路径,执行初始化配置脚本,创建系统自带的数据库和表
1
|
[root@server mysql-5.7.17]
# /usr/local/mysql/bin/mysqld --user=mysql --datadir=/usr/local/mysql/data --basedir=/usr/local/mysql/
|
生成的初始密码位于:
方法一:
1
2
|
[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 (密码是随机产生的,每台机器产生的都不一样哦)
方法二:
1
2
|
[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随机密码啦
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
[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.
|
登录之后 第一步必须先修改密码,否则其他操作都执行不了。
修改密码的方法:
1
2
3
|
mysql> alter user root@localhost identified by
'XXXXXXXXX'
;
Query OK, 0 rows affected (0.00 sec)
mysql> quit
|
2、安装jdk环境
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
[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
|
3、安装Tomcat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
[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
|
4、安装jira环境
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
[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
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
[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.
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
[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安装目录一样。
1
2
3
4
|
[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
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
[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
|
1
2
3
|
[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数据储存目录下面就生成目录文件了。
1
2
3
4
5
|
[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服务。
1
2
3
4
|
[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端进行汉化插件的添加。
6、数据库对jira授权,建立jira数据库
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
[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)
Query OK, 0 rows affected, 1 warning (0.01 sec)
mysql> quit
Bye
|
7、访问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/
本文转自MQ_douer 51CTO博客,原文链接:http://blog.51cto.com/douer/1932421,如需转载请自行联系原作者