`
lz1130
  • 浏览: 403681 次
  • 性别: Icon_minigender_1
  • 来自: 福建
社区版块
存档分类
最新评论

jira安装配置

    博客分类:
  • jira
阅读更多
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&amp;useUnicode=true&amp;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
1
0
分享到:
评论
1 楼 wj98127 2010-06-18  
我在安装svn插件的时候遇到一个问题,启动jira时,读取的subversion-jira-plugin.properties文件不是最新的,删除了jira的work目录也不管用,始终读的不是WEB-INF/classes下的新文件,请教一下,这个缓存在什么地方?

相关推荐

Global site tag (gtag.js) - Google Analytics