DevReview.net

More development notices …

Install JIRA on FreeBSD

leave a comment

How to install jira on freebsd manual

1.  First of all you should register on atlassian.com site, select needed version, find url for download. Also this registration needed for obtaining jira license (doesn’t matter if its for evaluation or for parmanent use). In this article I have downloaded Jira 4.2

2. Create separate new user from root on your machine with command:

#adduser

(for example: jira, with shell for example: csh)

login under jira user

su - jira


3. Set patch to JAVA_HOME into .cshrc file, its reqired for installation. (By the way installation java also described on blog, use search if you dont have installed java yet)

setenv JAVA_HOME /usr/local/jdk1.6.0

… and check if everything ok and freebsd knows where file is with command:

echo $JAVA_HOME

(dont forget re-login into new user session to see applied changes to .cshrc file)

4.  Download package and untar it:

wget http://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-enterprise-4.2-standalone.tar.gz
tar -zxvf atlassian-jira-enterprise-4.2-standalone.tar.gz

(so you have it unarchived in directory: /home/jira/atlassian-jira-enterprise-4.2-standalone now)

5. Create new jira-home dir (this dir needed for all content & technical data which jira stores for internal and external needs: search indeces, user attachments), for exampe here:

mkdir /home/jira/jira-data

6. Before jira startup you should specify where jira.home dir is in file:

/home/jira/atlassian-jira-enterprise-4.2-standalone/WEB-INF/atlassian-jira/classes/jira-attlassian.properties

change:

jira.home = /home/jira/jira-data

7. Also before startup check if jira default port 8080 is not used yet by some other listener, for example apache or nginx. If so, you can change it in file:

/home/jira/atlassian-jira-enterprise-4.2-standalone/conf/server.xml

Change lines:
<Server port="8005" shutdown="SHUTDOWN">
......
<Service name="Catalina">
    <Connector port="8090"
......

7. Now start JIRA via running shell script:

./home/jira/atlassian-jira-enterprise-4.2-standalone/bin/startup.sh

If no errors and everything done well – you’ll see next message and directory /home/jira/jira-data will be prefilled by some techical data/files structure.

JIRA Standalone Edition
Detecting JVM PermGen support...
PermGen switch is supported. Setting to 256m
If you encounter issues starting or stopping JIRA Standalone Edition, please see                                          the Troubleshooting guide at http://confluence.atlassian.com/display/JIRA/Insta                                         llation+Troubleshooting+Guide
Using CATALINA_BASE:   /usr/home/jira/atlassian-jira-enterprise-4.1.2-standalone
Using CATALINA_HOME:   /usr/home/jira/atlassian-jira-enterprise-4.1.2-standalone
Using CATALINA_TMPDIR: /usr/home/jira/atlassian-jira-enterprise-4.1.2-standalone

8. Check if jira installed well and service really started with command:

sockstat -4

you should see this:

jira     java       1283  50 tcp4   *:8090                *:*
jira     java       1283  51 tcp4   127.0.0.1:60196       127.0.0.1:54255

9. Now open it in you browser: http://192.168.81.128:8090, and you will see some last configs which needs to be made before finalization installation process: license, mailing option, etc.

Enjoy!

Written by admin

October 17th, 2010 at 4:54 am

Leave a Reply