jira安装在 debian上
2012-02-17 13:40
381 查看
Install JIRA on Debian or Ubuntu
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.
Run
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!)
Now edit the copied
Customize the database details
Fix the .war path to point to where to put the .war (eg.
Mine looks like:
?
jturner@psyche:/var/lib$ sudo mkdir jira
jturner@psyche:/var/lib$ sudo chown tomcat55 jira/
When importing data, specify
To increase heap or perm gen space memory in Linux installations,
From
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.
root@:/usr/share/tomcat6/bin# cat setenv.sh
export CATALINA_OPTS="$CATALINA_OPTS -Dorg.apache.jasper.runtime.BodyContentImpl .LIMIT_BUFFER=true -Dmail.mime.decodeparameters=true -Xms128m -Xmx1024m -XX:MaxP ermSize=256m"
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.
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
Runsudo 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. Editedit-webapps/WEB-INF/classes/entityengine.xmland configure for your database (see the "Configure JIRA" section of the docs for more info). Run
./build.shto generate the webapp. Copy the
dist-tomcat/atlassian-jira-3.8.1.warto 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/
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/
Now edit the copied
jira.xmland:
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:
?
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 .
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 .
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/indexas your index directory.
Linux调整jira内存
Expand to see Linux instructionsTo 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.
root@:/usr/share/tomcat6/bin# cat setenv.sh
export CATALINA_OPTS="$CATALINA_OPTS -Dorg.apache.jasper.runtime.BodyContentImpl .LIMIT_BUFFER=true -Dmail.mime.decodeparameters=true -Xms128m -Xmx1024m -XX:MaxP ermSize=256m"
相关文章推荐
- [原创] debian 9.3 搭建Jira+Confluence+Bitbucket项目管理工具(一) -- 安装jdk(含jre)及 MySql 5.6.39
- [原创] debian 9.3 搭建Jira+Confluence+Bitbucket项目管理工具(四) -- 安装bitbucket 5.7.0
- [原创] debian 9.3 搭建Jira+Confluence+Bitbucket项目管理工具(四) -- 安装crowd 3.1.2
- [原创] debian 9.3 搭建Jira+Confluence+Bitbucket项目管理工具(三) -- 安装confluence 6.6.1
- [原创] debian 9.3 搭建Jira+Confluence+Bitbucket项目管理工具(二) -- 安装jira 7.5.4
- Debian 安装相关
- (转)Debian/Ubuntu常见安装软件错误解决方案
- debian7下面使用brcmsmac安装 BCM4313, BCM43224, BCM43225
- debian安装node.js
- debian安装国际版QQ中的一些问题记录
- 安装debian Linux后文字显示的全是方块数字解决方法
- 惠普Z240 工作站 安装 Debian
- 安装Debian
- debian安装 Mongodb
- [1]debian 5.0 Lenny的U盘安装
- DebianLNMP一键安装包Debian6系统下的Nginx/PHP5.3/MySQL最快最新
- debian 安装iftop流量监控
- Debian或Ubuntu下squid的安装与基本配置(已验证) - [服务器区]
- Jira5.0.2安装及破解