Back to Home

Install jira on ubuntu

jira · ubuntu · tomcat · java

Install jira on ubuntu

    image

    image

    In short, jira is a project management system, but to establish its business is far from outstanding. To read long English-language manuals is very tiring, we will not correct Russian articles on the Internet very much now.



    Preconfigured SVN to later be associated with Jira.

    The first thing to do is install java. This is not a tricky thing, just apt-get install and you're done. If there is no java you need, then add the multiverse repository to /etc/apt/sources.list and then everything will go awry.

    Next, you need to install Tomcat. You can install it all through the same apt-get install, or you can just pull it off the site . This can be done like this:
    wget mirrors.axint.net/apache/tomcat/tomcat-6/v6.0.26/bin/apache-tomcat-6.0.26-deployer.tar.gz
    unpack:
    tar zxvf apache-tomcat-6.0.26-deployer.tar.gz

    A little about the structure:
    • The / bin / folder contains executable files (start, kill the server, etc.)
    • The / conf / folder contains the configuration files for the server
    • Of course, do not forget about the logs / folder, namely the logs / catalina.out file - this is where the main log file lies
    • / lib / - libraries, then we will need to copy additional libraries there

    We start
    sh /bin/statup.sh
    and it should start, at least I did it without problems. Checking localhost : 8080. If we see a kitty on the page - everything is fine, if we don’t see anything - go read the Tomcat manuals.

    Let's go download jira . Please note that we need a war version and in order to see the link to download it you need to click show All (to be honest, I searched for a long time).

    Download the jira:
    wget www.atlassian.com/software/jira/downloads/binary/atlassian-jira-enterprise-4.1.tar.gz
    Unpack:
    tar zxvf atlassian-jira-enterprise-4.1.tar.gz

    Edit the file Atlassian-jira-Enterprise-4.1 / the edit-the webapp / the WEB-INF / classes directory / entityengine.xml . We will install jira on mysql.

    Open the file, at the very end we see this: Change field-type-name = "hsql"
    schema-name="PUBLIC"
    helper-class="org.ofbiz.core.entity.GenericHelperDAO"
    check-on-start="true"
    use-foreign-keys="false"
    use-foreign-key-indices="false"
    check-fks-on-start="false"
    check-fk-indices-on-start="false"
    add-missing-on-start="true"
    check-indices-on-start="true">





    on field-type-name = "mysql" we
    delete the line schema-name = "PUBLIC"
    Everything in this file does not need to be touched anything else.

    Now we need to establish a directory where jira will live. Open atlassian-jira-enterprise-4.1 / edit-webapp / WEB-INF / classes / jira-application.properties and set jira_home = / path / to / folders (do not forget to create this folder and set the correct rights to it).

    Run the file
    sh atlassian-jira-enterprise-4.1/build.sh
    and wait while jira builds. I have it build about 2 minutes.

    Then we need to update the Tomcat libraries. You can take them here , and you need to unpack them into the / lib / directory of the tomcat . There you need to copy the filemysql-connector-java-5.1.12-bin.jar which can be taken here .

    After the build, we should see the folder: atlassian-jira-enterprise-4.1 / dist-tomcat . We go there, find the version of Tomcat we need and copy the jira.xml file to the Tomcat / conf / Catalina / localhost folder . Open this file in / conf / Catalina / localhost and edit it. We need this section: username = "sa" - specify the password from the database password = "" - specify the login driverClassName - put - com.mysql.jdbc.Driver url
    username="sa"
    password=""
    driverClassName="org.hsqldb.jdbcDriver"
    url="jdbc:hsqldb:/home/max.zloy/atlassian-jira-enterprise-4.1/database/jiradb"
    minEvictableIdleTimeMillis="4000"
    timeBetweenEvictionRunsMillis="5000"/>





    - jdbc: mysql: // localhost / jiradb? UseUnicode = true & characterEncoding = UTF8 (pay attention to the fact that "&" is not a typo, it should be so)
    Delete lines: because these options work only with hsql And in place of them we add : That's it, the configuration of this file is complete. Close-save. We create a database with the name jiradb and be sure to set it to UTF-8 encoding. That's not all. Now we need to put more memory in Tomcat, because jira is very gluttonous. Open the file in the Tomcat bin / setenv.sh directory , if not, create it and paste the lines there: save. Now it’s all. Restart Tomcat using the /bin/startup.sh and /bin/shutdown.sh Open
    minEvictableIdleTimeMillis="4000"
    timeBetweenEvictionRunsMillis="5000"



    maxActive="20"
    validationQuery="select 1"











    localhost : 8080 / jira (you may have to wait a bit for jira will be installed).
    export CATALINA_OPTS="$CATALINA_OPTS -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Dmail.mime.decodeparameters=true -Xms256m -Xmx256m -XX:MaxPermSize=256m"
    Everything looks simple, but it's the result.

    Read Next