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.
Work in progress
The safe, recommended, straightforward way of getting JIRA working is still to install JIRA Standalone in /usr/local/. Using The prepackaged Tomcat described here has not been tested. It appears to work, but may well be broken in subtle ways
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:/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.
Linux调整jira内存
Expand to see Linux instructions
To increase heap or perm gen space memory in Linux installations,
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).
Find the section JAVA_OPTS="-Xms256m -Xmx512m -XX:MaxPermSize=256m ...
See Diagnosis above and enter the appropriate values. Xmx is maximum, Xms is minimum, and MaxPermSize is PermGen.