设为首页 收藏本站
查看: 520|回复: 0

[经验分享] jira安装在 debian上

[复制链接]
发表于 2018-5-15 10:12:09 | 显示全部楼层 |阅读模式
  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.

DSC0000.png 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:/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.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=&quot;/jira&quot; docBase=&quot;/usr/share/jira/atlassian-jira-3.8.1.war&quot; debug=&quot;0&quot;>



    <!-- 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=&quot;jdbc/JiraDS&quot; auth=&quot;Container&quot; type=&quot;javax.sql.DataSource&quot;

            username=&quot;jturner&quot;

            password=&quot;jturner&quot;

            driverClassName=&quot;org.postgresql.Driver&quot;

            url=&quot;jdbc:postgresql://localhost/jturner&quot;/>



    <Resource name=&quot;UserTransaction&quot; auth=&quot;Container&quot; type=&quot;javax.transaction.UserTransaction&quot;

    factory=&quot;org.objectweb.jotm.UserTransactionFactory&quot; jotm.timeout=&quot;60&quot;/>

    <Manager className=&quot;org.apache.catalina.session.PersistentManager&quot; saveOnRestart=&quot;false&quot;/>



</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 .





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/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=&quot;-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=&quot;$CATALINA_OPTS -Dorg.apache.jasper.runtime.BodyContentImpl                                                                                        .LIMIT_BUFFER=true -Dmail.mime.decodeparameters=true -Xms128m -Xmx1024m -XX:MaxP                                                                                        ermSize=256m&quot;

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.iyunv.com/thread-460363-1-1.html 上篇帖子: 为虚拟机中的debian6安装vmtool 下篇帖子: 在debian上安装LDAP服务器
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表