Installing JIRA applications on Linux

In this guide we'll run you through installing a JIRA application in a production environment, with an external database, using the Linux installer.

This is the most straightforward way to get your production site up and running on a Linux server.

Other ways to install JIRA:

  • Evaluation - get your free trial up and running in no time.
  • TAR.GZ – install JIRA manually from an archive file.
  • Windows – install JIRA on a Windows server.

Install a JIRA application

1. Download JIRA

Download the installer for your operating system –

https://www.atlassian.com/software/jira/download

2. Run the installer

  1. Make the installer executable.

  2. Download and Install Pre-requisite for Jira Installations.

    12345678
    Download JRE or JDK using http://www.scmgalaxy.com/tutorials/complete-guide-of-java-installation-in-linux/
    
    $ yum install wget -y
    $ wget -c --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.rpm
    $ rpm -ivh jdk-8u131-linux-x64.rpm
    $ java
    								

    Jira Installtion using BIN file & Tarball & Zipfile

    1234567891011121314151617181920212223242526272829303132333435363738394041
    ##########Jira Installtion using BIN file##########
    $ yum install wget -y
    $ cd /opt/
    $ wget https://product-downloads.atlassian.com/software/jira/downloads/atlassian-jira-software-7.13.0-x64.bin
    $ chmod 755 atlassian-jira-software-7.13.0-x64.bin
    $ ./atlassian-jira-software-7.13.0-x64.bin
    
    How to start & stop jira
    $ /etc/init.d/jira stop
    $ /etc/init.d/jira start
    
    Installation Directory: /opt/atlassian/jira
    Home Directory: /var/atlassian/application-data/jira
    HTTP Port: 8080
    RMI Port: 8005
    
    ##########Jira Installtion using tarball file or zip file ##########
    $ yum install wget -y
    $ yum install unzip -y
    $ cd /opt/
    $ wget  https://product-downloads.atlassian.com/software/jira/downloads/atlassian-jira-software-7.13.0.tar.gz OR
    $ wget https://product-downloads.atlassian.com/software/jira/downloads/atlassian-jira-software-7.13.0.zip
    $ tar -xvf atlassian-jira-software-7.13.0.tar.gz or unzip atlassian-jira-software-7.13.0.zip
    $ mv atlassian-jira-software-7.13.0-standalone jira
    $ cd jira
    $ vi ./atlassian-jira/WEB-INF/classes/jira-application.properties
    jira.home =/opt/jira/atlassian-jira
    $ cd bin/
    $ ./stop-jira.sh
    $ ./start-jira.sh
    
    Server startup logs are located in /opt/jira/logs/catalina.out
    Using CATALINA_BASE:   /opt/jira
    Using CATALINA_HOME:   /opt/jira
    Using CATALINA_TMPDIR: /opt/jira/temp
    Using JRE_HOME:        /
    Using CLASSPATH:       /opt/jira/bin/bootstrap.jar:/opt/jira/bin/tomcat-juli.jar
    Using CATALINA_PID:    /opt/jira/work/catalina.pid
    
    								
  3. Run the installer – we recommend using sudo to run the installer as this will create a dedicated account to run JIRA and allow you to run JIRA as a service.

  4. Show me how to do this...
  5. Follow the prompts to install JIRA. You'll be asked for the following info:
    • Install type – choose option 2 (custom) for the most control.
    • Destination directory – this is where JIRA will be installed.
    • Home directory – this is where JIRA data like logs, search indexes and files will be stored.
    • TCP ports – these are the HTTP connector port and control port JIRA will run on. Stick with the default unless you're running another application on the same port.
    • Install as service – this option is only available if you ran the installer as sudo.
  6. Once installation is complete head to http://localhost:8080 in your browser to begin the setup process.
    (Replace 8080 if you chose a different port during installation).

Set up your JIRA application

3. Choose set up method


Choose I'll set it up myself.


4. Connect to your database


  1. If you've not already done so, it's time to create your database. See the 'Before you begin' section of this page for details.
  2. Choose My own database.
  3. Choose your database type then enter the details for your database.

Show me how to do this...

JIRA connects to your database using a standard JDBC database connection. Connection pooling is handled within JIRA, you can change this using JIRA configuration tool later.

If you're using Oracle or MySQL there's an extra step:

  • Download and and extract the appropriate Database JDBC Drivers.
  • Drop the JAR file into your <jira-installation>/lib folder before continuing with the setup wizard.

In the setup wizard:

  • Driver Class Name – the Java class name for your database driver. If you're not sure, check the documentation for your database.
  • Database URL – the JDBC URL for your database. If you're not sure, check the documentation for your database.
  • Username and Password – A valid username and password that JIRA can use to access your database.

5. Set application properties


  1. Give your JIRA site a name.
  2. Choose wether your site should is private or if anyone can sign up. You can change this later.
  3. Enter your base URL - this is the address people will use to access your JIRA site.

5. Enter your license


Follow the prompts to log in to my.atlassian.com to retrieve your license, or enter a license key.

6. Create your administrator account


Enter details for the administrator account. You can add more administrators after set up is complete.

7. Set up email notifications


Enter details of your mail server. This will allow JIRA to send notifications when issues change.

8. Start using JIRA


That's it! Your JIRA site is accessible from your base URL or a URL like this: http://<computer_name_or_IP_address>:<port>
Here's a few things that will help you get your team up and running:



  Call us on +91 700 483 5930   |   +91 700 483 5706     Contact@DevopsSchool.com