Jdk安装
chmod a+x jdk-6u16-linux-i586.bin
sudo cp jdk-6u16-linux-i586.bin /usr/local/
cd /usr/local/
sudo /usr/local/jdk-6u16-linux-i586.bin
sudo rm -f /usr/local/jdk-6u16-linux-i586.bin
设置环境变量
sudo vi /etc/profile
输入以下:
export JAVA_HOME=/usr/local/jdk1.6.0_16
export JRE_HOME=$JAVA_HOME/jre
export CLASSPATH=$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
重启系统 (也可以不用重启系统先logout然后login)
查看java版本:
java –version
Jira安装
sudo tar zxvf atlassian-jira-enterprise-3.13.5-standalone.tar.gz
sudo cp -rf atlassian-jira-enterprise-3.13.5-standalone /home/workhome/jira
添加运行tomcat用户
sudo useradd -d /home/workhome/jira -s /usr/sbin/nologin jira
安装启动脚本
cd /home/workhome/jira/bin/
sudo tar zxvf jsvc.tar.gz
cd jsvc-src/
sudo sh support/buildconf.sh
# support/buildconf.sh: configure script generated successfully
sudo sh ./configure --with-java=/usr/local/jdk1.6.0_16
sudo make
sudo cp /home/workhome/jira/bin/jsvc-src/native/Tomcat5.sh /etc/init.d/jira
sudo chmod 755 /etc/init.d/jira
编辑启动脚本
sudo vi /etc/init.d/jira
更改以下:
#!/bin/sh
##############################################################################
#
# Copyright 2004 The Apache Software Foundation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
##############################################################################
#
# Small shell script to show how to start/stop Tomcat using jsvc
# If you want to have Tomcat running on port 80 please modify the server.xml
# file:
#
# <!-- Define a non-SSL HTTP/1.1 Connector on port 80 -->
# <Connector className="org.apache.catalina.connector.http.HttpConnector"
# port="80" minProcessors="5" maxProcessors="75"
# enableLookups="true" redirectPort="8443"
# acceptCount="10" debug="0" connectionTimeout="60000"/>
#
# That is for Tomcat-5.0.x (Apache Tomcat/5.0)
#
# Adapt the following lines to your configuration
JAVA_HOME=/usr/local/jdk1.6.0_16
CATALINA_HOME=/home/workhome/jira
DAEMON_HOME=/home/workhome/jira/bin
TOMCAT_USER=jira
# for multi instances adapt those lines.
TMP_DIR=/var/tmp
PID_FILE=/var/run/jsvc.pid
CATALINA_BASE=/home/workhome/jira
#CATALINA_OPTS="-Djava.library.path=/home/jfclere/jakarta-tomcat-connectors/jni/native/.libs"
#JVM Mem
CATALINA_OPTS='-Xms64m -Xmx256m'
CLASSPATH=\
$JAVA_HOME/lib/tools.jar:\
$CATALINA_HOME/bin/commons-daemon.jar:\
$CATALINA_HOME/bin/bootstrap.jar
case "$1" in
start)
#
# Start Tomcat
#
$DAEMON_HOME/jsvc-src/jsvc \
-user $TOMCAT_USER \
-home $JAVA_HOME \
-Dcatalina.home=$CATALINA_HOME \
-Dcatalina.base=$CATALINA_BASE \
-Djava.io.tmpdir=$TMP_DIR \
-wait 10 \
-pidfile $PID_FILE \
-outfile $CATALINA_HOME/logs/catalina.out \
-errfile '&1' \
$CATALINA_OPTS \
-cp $CLASSPATH \
org.apache.catalina.startup.Bootstrap
#
# To get a verbose JVM
#-verbose \
# To get a debug of jsvc.
#-debug \
exit $?
;;
stop)
#
# Stop Tomcat
#
$DAEMON_HOME/jsvc-src/jsvc \
-stop \
-pidfile $PID_FILE \
org.apache.catalina.startup.Bootstrap
exit $?
;;
*)
echo "Usage tomcat.sh start/stop"
exit 1;;
esac
安装MYSQL/J JDBC 驱动
sudo cp mysql-connector-java-3.1.14-bin.jar /home/workhome/jira/common/lib/
修改tomcat配置。
sudo vi /home/workhome/jira/conf/server.xml
修改如下:
username="jira"
password="isends"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://10.3.37.110:3306/test?autoReconnect=true&useUnicode=true&characterEncoding=UTF8"
删除以下:
minEvictableIdleTimeMillis="4000"
timeBetweenEvictionRunsMillis="5000"
sudo vi /home/workhome/jira/atlassian-jira/WEB-INF/classes/entityengine.xml
修改如下:
<datasource name="defaultDS" field-type-name="mysql"
删除 schema-name="PUBLIC"
建立工作目录与权限设置(
权限可能有问题,测试ing):
mkdir /home/workhome/jira/sendslab
sudo chown -R jira:ftp /home/workhome/jira
启动:
sudo /etc/init.d/jira start
如果以上有错误多半是安装jsvc.tar.gz时的错误没注意到。
可以试试以下:
/home/workhome/jira/bin/startup.sh
安装:
http://10.3.37.110:8080/
ps:各个路径最好统一放在jira的根目录
索引:/home/workhome/jira/sendslab/index
附件:/home/workhome/jira/sendslab/accessories
备份:/home/workhome/jira/sendslab/backup
开机启动
vi /etc/rc.local
加入:
sudo /etc/init.d/jira start
Subversion-Plugin安装
ps:
注意Subversion-Plugin与jira的版本兼容性
兼容性可查看
这里
jira的Subversion-Plugin安装看官方教程就好。也可以看安装包里的 README.txt
以下便是官方README.txt里安装配置与卸载的部分:
Subversion Plugin
Quick Install Instructions
--------------------------
1. Copy into JIRA's WEB-INF/lib (removing any existing older versions):
- lib/atlassian-jira-subversion-plugin-*.jar
- lib/svnkit-*.jar
- lib/trilead-ssh2-*.jar (only used if you are using ssh authentication for your subversion repository)
2. Edit for your installation:
- subversion-jira-plugin.properties
NOTE: Multiple Subversion repositories are supported. You can specify a default repository (svn.root = {svn root},
etc...) and additional repositories with: svn.root.1=..., svn.root.2=..., and so on. If you do not specify the username,
password, view url, revision indexing, and revision indexing cache size for you additional repository entries then the
values will be taken from your default repository entry (in this way you do not need to copy username and password over
and over if they are the same).
3. Copy into JIRA's WEB-INF/classes
- subversion-jira-plugin.properties
4. If you are upgrading from an older version of the plugin, please delete the Subversion index directory
($jira's_index_dir}/plugins/atlassian-subversion-revisions/). The plugin will recreate it when its service first runs.
5. Restart JIRA - whew, you're done! :)
If you are using JIRA Standalone you can copy the files under the atlassian-jira sub-directory. That is, the jar files into
atlassian-jira/WEB-INF/lib and the .properties file into atlassian-jira/WEB-INF/classes.
If using the WAR distribution, create the directory edit-webapp/WEB-INF/lib and copy the jar files into it. Then copy the
.properties file into edit-webapp/WEB-INF/classes and rebuild and redeploy the JIRA war file.
(note: the first time the service runs it will take a while to index all of your existing issues - be patient)
Scheduling
----------
You can also optionally configure Subversion service's schedule to check for new commits (defaults to 1 hour)
To do this, in JIRA:
- go to the "Administration" tab
- click on the "System" menu item
- click on "Services"
- edit the Subversion Indexing Service
- update the period (in minutes) to whatever you want.
Restarting
----------
If you want to reindex all of your commits or anything goes astray, simply:
- stop the JIRA server
- delete ${jira's_index_dir}/plugins/atlassian-subversion-revisions
- start JIRA
分享到:
相关推荐
详细的jira安装教程,适合初学bug管理工具的同学
JIRA 服务器 配置 要求
1、JDK、JIRA、MySQL 安装完毕,停止 JIRA 服务 创建数据库: mysql create database jiradb character set ‘gb2312′; 创建用户并赋与权限: create user jirauser identified by ‘jira’; grant all ...
Jira&Confluence安装配置说明
JIRA用户使用指南-简化版。JIRA安装配置,工作流建立等
关于jira的安装于配置,自己使用后写的,方便大家使用,呵呵
jira安装汉化与mysql的配置说明很全面
JIRA
jira安装,配置,汉化,mysql数据库连接 文档里描述很详细。
jira6.1.1安装配置详细描述 附有mysql与jira链接的驱动5.1/5.0
Jira配置,一些简单的应用和配置方法!
JIRA 系统安装与使用手册
jira配置流程说明 jira配置流程说明
JIRA工作流配置说明,告诉你如何在jira配置一个工作流,看完以后你会情不自禁的说:“味がとてもうまい”
jira安装网址,描述了JIRA的安装及配置
快速熟悉掌握 JIRA配置管理--在用户组管理 自定义工作流流程方面
软件测试常用缺陷管理工具Jira的配置,使用。综合整理而得,算是比较全面了
入门篇 jira 安装 配置 概念 及操作
JIRA的邮件通知配置
JIRA具有你在其他类似的问题跟踪系统中找不到的特性。 o 容易创建和保存的高可配置的能够过滤系统中所有问题的过滤器 o 同其他用户共享过滤器或订阅过滤器的过滤结果并定时通过邮件发送 o 动态问题连接功能允许您在...