You are viewing an old revision of this post, from January 13, 2016 @ 15:22:42. See below for differences between this version and the current revision.

Jira – Installing on Linux

Before you begin

  • We strongly recommend that you install the latest production version available. If you install an older version of JIRA, it may contain security vulnerabilities that were patched or fixed in subsequent versions. If you have to install an older version, check if there are any security advisories that apply to the version.
  • Note, it is possible that any anti-virus or other Internet security tools installed on your Linux operating system may interfere with the JIRA installation process and prevent the process from completing successfully. If you experience or anticipate experiencing such an issue with your anti-virus/Internet security tool, disable this tool first before proceeding with the JIRA installation.

Installing JIRA

There are two ways to install JIRA using the Linux Installer:

Using the Console Wizard

Use the console wizard if you are installing JIRA on your server for the first time or you wish to specify your installation options. If you have previously installed JIRA using the installation wizard and wish to re-install JIRA again with the same installation options, you can re-install JIRA in 'unattended mode' without any user input required (see below for details).

1. Download and Install the JIRA 'Linux Installer'

(tick) If you execute the Linux Installer with 'root' user privileges, the installer will create a dedicated user account for JIRA. You can also execute the Linux Installer without 'root' user privileges, but your installation options will be much more limited and the installer will not be able to create a dedicated user account for running JIRA. To run JIRA as a service, the Linux Installer must be executed with 'root' user privileges.
  1. Download the appropriate JIRA 'Linux 64-bit / 32-bit Installer' (.bin) file from the JIRA Download page. (info) Please Note:
    • To access the 32-bit installer, you may need to click the 'Show all' link on the 'JIRA Download' page to access the other installation packages.
    • The difference between the 64-bit / 32-bit .bin installers relates to their bundled Java platforms that run JIRA. Bear in mind that a JIRA installation installed using the 64-bit installer may require additional memory (to run at a similar level of performance) to a JIRA installation installed using the 32-bit installer. This is because a 64-bit Java platform's object references are twice the size as those for a 32-bit Java platform.
  2. Open a Linux console and change directory (cd) to the '.bin' file's directory. (warning) If the '.bin' file is not executable after downloading it, make it executable, for example: chmod a+x atlassian-jira-X.Y.bin (where X.Y represents your version of JIRA)
  3. Execute the '.bin' file to start the console wizard.
  4. When prompted to choose between 'Express Install', 'Custom Install' or 'Upgrade an existing JIRA installation', choose either the 'Express Install' or 'Custom Install' options:
    • Express Install— If you choose this option, JIRA will be installed with default settings which are shown in the next step of the console wizard. (info) Please Note:
      • If you are running the installer with 'root' user privileges, JIRA will be installed as a service.
      • If you want to customize any of these options:
        1. Enter 'e' to exit the console wizard.
        2. Execute the console wizard again (step 3 above).
        3. Choose the 'Custom Install' option instead.
    • Custom Install — If you choose this option, JIRA will prompt you to specify the following options (which are presented during subsequent steps of the console wizard and pre-populated with default values):
      • The 'Destination Directory' in which to install JIRA.
      • The JIRA Home directory (which must be unique for each JIRA installation).
      • The TCP ports (i.e. an HTTP and a Control port) that JIRA will run through.
      • If you are running the installer with 'root' user privileges, you will be prompted to 'Run JIRA as a service' (recommended). You can also do this manually later, as described inStarting JIRA Automatically on Linux.
  5. The console wizard will install JIRA onto your operating system and will start JIRA automatically when the wizard finishes.
(info) Please Note:
  • If you executed the Linux Installer with 'root' user privileges, the Linux Installer creates a dedicated Linux user account with username 'jira' and no password, which is used to run JIRA. This account has only:
  • The bundled installer expects the 'root' user to have have the default umask (0022 or 002), if this is not set it can cause problems with the install as per  JRA-32435 - JIRA Linux Installer does not set files with correct permissions when a non-default umask is used VERIFIED . Please ensure this is set prior to installation.
  • If you executed the Linux Installer without 'root' user privileges, be aware that JIRA can still be run with 'root' privileges. However, to protect the security of your operating system, this is not recommended.
  • Depending on how big the JIRA instance may become, you may need to increase the maximum number of files available on the operating system. This is further covered in our Loss of functionality due to too many open files errors KB - please review it for further information.

2. Start JIRA

If JIRA is not already started, you can start JIRA using the appropriate command at the Linux console. Once JIRA is started, you can access JIRA from a browser on any computer with network access to your JIRA server.
2.1 Starting and Stopping JIRA manually
If JIRA was installed as a user with 'root' privileges, use the JIRA service in the Linux console. These commands will need to be executed as a user with 'root' privileges.
  • service jira start (to start JIRA)
  • service jira stop (to stop JIRA)
If JIRA was not installed as a user with 'root' privileges, in the Linux console, enter the bin subdirectory of your JIRA installation directory and execute the appropriate file:
If the below commands are used as a user with 'root' privileges, and JIRA was installed as another user (for example jira) it can cause permissions problems as detailed inJIRA applications generate a FileNotFoundException due to permission denied.
  • start-jira.sh (to start JIRA)
  • stop-jira.sh (to stop JIRA)
JIRA will be ready to access (from a browser window) when the following message appears in the application's log file:
1
*******************************************************
2
 ... You can now access JIRA through your web browser.
3
*******************************************************
2.2 Accessing JIRA from a Browser
You can access JIRA from any computer with network access to your JIRA server by opening a supported web browser on the computer and visiting this URL:
  • http://<computer_name_or_IP_address>:<HTTP_port_number>
where:
  • <computer_name_or_IP_address> is the name or IP address of the computer on which JIRA is installed and
  • <HTTP_port_number> is the HTTP port number specified when you installed JIRA (above).
(info) Please Note:

3. Run the Setup Wizard

See Running the Setup Wizard.

4. Next Steps

Performing an Unattended Installation

If you have previously installed JIRA using the console wizard (above), you can use a configuration file from this JIRA installation (called response.varfile) to re-install JIRA in 'unattended mode' without any user input required. Installing JIRA in unattended mode saves you time if your previous JIRA installation was used for testing purposes and you need to install JIRA on multiple server machines based on the same configuration. (warning) Please Note:
  • The response.varfile file contains the options specified during the installation wizard steps of your previous JIRA installation. Hence, do not uninstall your previous JIRA installation just yet.
  • If you intend to modify the response.varfile file, please ensure all directory paths specified are absolute, for example, sys.installationDir=/opt/atlassian/jira Unattended installations will fail if any relative directory paths have been specified in this file.

Download and Run the JIRA 'Linux Installer' in Unattended Mode

  1. Download the JIRA 'Linux Installer' (.bin) file from the JIRA Download Center to a suitable location.
  2. Open a Linux console.
  3. Copy (cp) the file .install4j/response.varfile located in your previous JIRA installation directory, to the same location as the downloaded 'Linux Installer' file. (info) You can uninstall your previous JIRA installation after this step. Save your response.varfile if you need to install JIRA on multiple machines.
  4. Change directory (cd) to the location of the 'Linux Installer' file and execute the following command:
    1
    atlassian-jira-X.Y.bin -q -varfile response.varfile
    Where:
    • X.Y — refers to the version of JIRA you are about to install.
    • -q — instructs the installer to operate in unattended mode (i.e. 'quietly').
    • -varfile response.varfile — specifies the configuration file containing the configuration options used by the installer. The location and name of the configuration file should be specified after the -varfileoption.
  5. JIRA will start automatically when the silent installation finishes. Continue from step 2 Starting JIRA (above).

Revisions

  • January 13, 2016 @ 15:22:42 [Current Revision] by admin
  • January 13, 2016 @ 15:22:42 by admin

Revision Differences

There are no differences between the January 13, 2016 @ 15:22:42 revision and the current revision. (Maybe only post meta information was changed.)

No comments yet.

Leave a Reply