JIRA是Atlassian公司出品的项目与事务跟踪工具,被广泛应用于缺陷跟踪、客户服务、需求收集、流程审批、任务跟踪、项目跟踪和敏捷管理等工作领域。
一,java 环境:
安装jdk
# curl -L -O http://download.oracle.com/otn-pub/java/jdk/8u45-b14/jdk-8u45-linux-x64.tar.gz
# tar -zxvf jdk-8u45-linux-x64.gz -C /usr/local/java/
# cd /usr/local/java/
设置环境变量
# export JAVA_HOME=/usr/local/java/jdk1.8.0_45/
# export PATH=$JAVA_HOME/bin:$PATH
# export CLASSPATH=.:$java_home/lib/dt.jar:$JAVA_HOME/lib/tools.jar
# java -version
# source /etc/profile 激活/etc/profile 文件;
[root@bogon java]# java -version
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b14, mixed mode)
二、mysql 数据库;
在安装jira 演示可以安装内置数据库;线上生产建议配置数据库;
# yum install mysql mysql-server
# yum install mysql mysql-server
# service mysqld start
# chkconfig mysqld on
设置密码
# mysqladmin -uroot -p password 'mysql'
# service mysqld restart
# mysql -uroot -p
创建jira库;设置UTF-8编码;以及添加连接jira库权限的用户密码;
mysql> CREATE DATABASE jira DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
Query OK, 1 row affected (0.00 sec)
mysql> grant all privileges on jira.* to jira@'%' identified by 'jira';
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> exit
Bye
上传源码包;(不同的安装包、有所不同,可以下载官方的bin执行,也可以下载源码包)
直接执行;startup启动脚本;
[root@node2 opt]# jira/bin/startup.sh
.....
.... .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 /opt/jira/logs/catalina.out
Using CATALINA_BASE: /opt/jira
Using CATALINA_HOME: /opt/jira
Using CATALINA_TMPDIR: /opt/jira/temp
Using JRE_HOME: /opt/java/jre1.8.0_45/
Using CLASSPATH: /opt/jira/bin/bootstrap.jar:/opt/jira/bin/tomcat-juli.jar
Using CATALINA_PID: /opt/jira/work/catalina.pid
Existing PID file found during start.
Removing/clearing stale PID file.
Tomcat started.
[root@node2 opt]#
默认端口是8080 ;可以在conf/server.xml 下 设置更改;
URL访问:http://IP:port 进入setup 安装设置; 安装登陆 设置中文; 添加中文包: 中文包下载地址: https://translations.atlassian.com/dashboard/download?lang=zh_CN#/JIRA Software/7.1.0-m02 官方参考: https://www.atlassian.com/software/jira CSVN 安装指南; http://wiki.csdn.net/display/CSDN/JIRA