Debian系统上安装Jira教程




  , Skip to end of metadata
 


  • Page restrictions apply
  • Added by  Jeff Turner, last edited by  David Soul [Atlassian] on Jun 09, 2009 ( view change)
  • show comment  hide comment
  • Comment: Corrected links that should have been relative instead of absolute.
       
     Go to start of metadata
     

These are some rough notes for getting JIRA installed in a Debian-friendly way, using the 'tomcat5.5' package, and copying files to  FHS-approved places. Hopefully one day it will form the basis for a JIRA .deb.


jira安装在 debian上_休闲Work in progress

Install and configure the Sun JDK

Run sudo apt-get install sun-java6-jdk. This will install the Sun JDK.

    Run sudo update-alternatives --config java, and make the java-6-sun version the default. Without this, Debian uses its built-in half-broken GCJ implementation.

Install Tomcat

sudo apt-get install tomcat5.5

Configure Tomcat

Edit /etc/default/tomcat5.5, and set:

  • JAVA_HOME=/usr/lib/jvm/java-6-sun
  • TOMCAT5_SECURITY=no

(this tells Tomcat to use the Sun JDK, and disables the security manager (we don't yet have a policy file written for JIRA - contributions welcome!)

Build the JIRA webapp

Download the JIRA WAR/Webapp edition. Unzip somewhere. Edit edit-webapps/WEB-INF/classes/entityengine.xml and configure for your database (see the "Configure JIRA" section of the  docs for more info). Run ./build.sh to generate the webapp. Copy the dist-tomcat/atlassian-jira-3.8.1.war to a new /usr/share/jira/ directory:

jturner@psyche:/usr/share$ sudo mkdir jira
jturner@psyche:/usr/share$ sudo chown tomcat55 jira
jturner@psyche:/usr/share$ sudo cp /tmp/atlassian-jira-enterprise-3.8.1/dist-tomcat/atlassian-jira-3.8.1.war /usr/share/jira/
1.2.3.

Setup the Tomcat JIRA config file.

jturner@psyche:/tmp/atlassian-jira-enterprise-3.8.1$ sudo cp dist-tomcat/tomcat-5.5/jira.xml /var/lib/tomcat5.5/conf/Catalina/localhost/
1.

Now edit the copied jira.xml and:

  • Customize the database details
  • Fix the .war path to point to where to put the .war (eg. /usr/share/jira/atlassian-jira-3.8.1.war).

Mine looks like:

?


<Context path="/jira" docBase="/usr/share/jira/atlassian-jira-3.8.1.war" debug="0"> <!-- NOTE: If you use a database other than hsqldb: * delete the minEvictableIdleTimeMillis and timeBetweenEvictionRunsMillis attributes * change the database type in atlassian-jira/WEB-INF/classes/entityengine.xml --> <Resource name="jdbc/JiraDS" auth="Container" type="javax.sql.DataSource" username="jturner" password="jturner" driverClassName="org.postgresql.Driver" url="jdbc:postgresql://localhost/jturner"/> <Resource name="UserTransaction" auth="Container" type="javax.transaction.UserTransaction" factory="org.objectweb.jotm.UserTransactionFactory" jotm.timeout="60"/> <Manager className="org.apache.catalina.session.PersistentManager" saveOnRestart="false"/> </Context>

Add extra jars to Tomcat

jturner@psyche:/usr/share/java$ sudo mkdir jira-jars
jturner@psyche:/usr/share/java$ sudo chown $USER jira-jars
jturner@psyche:/usr/share/java$ cd jira-jars
jturner@psyche:/usr/share/java/jira-jars$ wget -q 'http://www.atlassian.com/software/jira/docs/servers/jars/3.8.1/jira-jars-tomcat5.zip'
jturner@psyche:/usr/share/java/jira-jars$ mv jira-jars-tomcat5/* .
jturner@psyche:/usr/share/java/jira-jars$ ls
carol-1.5.2.jar       jira-jars-tomcat5      jotm-1.4.3.jar             jta-1.0.1.jar                   xapool-1.3.1.jar
carol-properties.jar  jira-jars-tomcat5.zip  jotm-iiop_stubs-1.4.3.jar  objectweb-datasource-1.4.3.jar
hsqldb-1.8.0.5.jar    jonas_timer-1.4.3.jar  jotm-jrmp_stubs-1.4.3.jar  ots-jts_1.0.jar
jturner@psyche:/usr/share/java/jira-jars$
jturner@psyche:/usr/share/java/jira-jars$  rm -r jira-jars-tomcat5*
jturner@psyche:/usr/share/java/jira-jars$ cd /usr/share/tomcat5.5/common/lib
jturner@psyche:/usr/share/tomcat5.5/common/lib$ sudo ln -s /usr/share/java/jira-jars/*.jar .
1.2.3.4.5.6.7.8.9.10.11.12.13.

Add JDBC jar to Tomcat

Here using Postgres:

jturner@psyche:/usr/share/tomcat5.5/common/lib$ sudo apt-get install libpgjava
jturner@psyche:/usr/share/tomcat5.5/common/lib$ sudo ln -s /usr/share/java/postgresql-jdbc3.jar .
1.2.

Create JIRA runtime directory

  • Create JIRA temp dir:

jturner@psyche:/var/lib$ sudo mkdir jira

    jturner@psyche:/var/lib$ sudo chown tomcat55 jira/

When importing data, specify /var/lib/jira/index as your index directory.,
 

Expand to see Linux instructions

To increase heap or perm gen space memory in Linux installations,


  1. From <confluence-install>/bin (Stand-alone) or <Tomcat-home>/bin (EAR-WAR installation), open setenv.sh (you can create this file in the EAR/WAR version).
  2. Find the section JAVA_OPTS="-Xms256m -Xmx512m -XX:MaxPermSize=256m ...
  3. See  Diagnosis above and enter the appropriate values. Xmx is maximum, Xms is minimum, and MaxPermSize is PermGen.


免责声明:本文系网络转载或改编,未找到原创作者,版权归原作者所有。如涉及版权,请联系删

QR Code
微信扫一扫,欢迎咨询~

联系我们
武汉格发信息技术有限公司
湖北省武汉市经开区科技园西路6号103孵化器
电话:155-2731-8020 座机:027-59821821
邮件:tanzw@gofarlic.com
Copyright © 2023 Gofarsoft Co.,Ltd. 保留所有权利
遇到许可问题?该如何解决!?
评估许可证实际采购量? 
不清楚软件许可证使用数据? 
收到软件厂商律师函!?  
想要少购买点许可证,节省费用? 
收到软件厂商侵权通告!?  
有正版license,但许可证不够用,需要新购? 
联系方式 155-2731-8020
预留信息,一起解决您的问题
* 姓名:
* 手机:

* 公司名称:

姓名不为空

手机不正确

公司不为空