Linux installation Jira detailed steps

Source: Internet
Author: User
Tags mkdir port number tomcat

Install Jira under Linux

 First step: Install JDK

1. Download the JDK installation package from the website

2. Upload the JDK installation package to the virtual machine or server: SCP filename (jdk-7u17-linux-x64.tar.gz) root@ a virtual machine or server to pass (210.56.194.45)

3. Create a Java directory under the/usr/local/directory: mkdir Java

4. Copy the file to the Java directory: CP filename (jdk-7u17-linux-x64.tar.gz)/usr/local/java

5. Extract files: first extract into. Tar file: gzip-d filename (jdk-7u17-linux-x64.tar.gz) in unzip to executable: TAR-XVF file name (Jdk-7u17-linux-x64.tar)

6. Configure the operating environment for JDK:

Enter Vi/etc/profile to open the file to add the following

Java_home=/usr/local/java/jdk1.7.0_17

Classpath= $JAVA _home/lib: $JAVA _home/jre/lib

Path= $PATH: $JAVA _home/bin: $JAVA _home/jre/bin

Export PATH CLASSPATH Java_home

7. Logout Logout Login

8.echo $JAVA _home to validate JAVA paths

  Step two: Install MySQL

1. Website download MySQL installation package

2. Upload the MySQL installation package to the virtual machine or server: SCP filename (mysql installation package) root@ the virtual machine or server (210.56.194.45)

3. Direct Yum install mysql* install MySQL

4. After installation completes/etc/init.d/mysqld start MySQL

5.show databases to verify MySQL success

 Step Three: Install Tomcat

1. Download Tomcat's installation package from official website

2. Upload the JDK installation package to the virtual machine or server: SCP filename (apache-tomcat-6.0.20.tar.gz) root@ a virtual machine or server to pass (210.56.194.45)

3. Create a Tomcat directory under the/usr/local/directory: mkdir Tomcat

4. Copy the files to the Tomcat directory: CP filename (apache-tomcat-6.0.20.tar.gz)/usr/local/tomcat

5. Extract files: first extract into. Tar file: gzip-d filename (apache-tomcat-6.0.20.tar.gz) in unzip to executable: TAR-XVF file name (Apache-tomcat-6.0.20.tar)

6. Start tomcat:/usr/local/tomcat/tomcat/bin/startup.sh success will output the following:

[Root@liaidong ~]#/usr/local/tomcat/tomcat/bin/startup.sh

Using catalina_base:/usr/local/tomcat/tomcat

Using Catalina_home:/usr/local/tomcat/tomcat

Using Catalina_tmpdir:/usr/local/tomcat/tomcat/temp

Using Jre_home:/usr/local/java/jdk1.7.0_17

  Step Fourth: Install the Jira file

1. Download the Jira installation files

2. Transfer Jira source files to a virtual machine or server

3. Decompression source to extract the source files to the/opt/jira below, Jira installed successfully, and then configure

4. Start Jira Service

To start the Jira command:

opt/jira/atlassian-jira-5.2.11-standalone/bin/startup.sh Start the virtual machine

Opt/jira/atlassian-jira-5.2.11-standalone/bin/catalina.sh run to view the startup log of the virtual machine

5. Start the successful configuration Jira:

Server.xml Modify the part of the database:

Modify Port number

Configuration database

Username= "Jira"

Password= "Jira"

Driverclassname= "Com.mysql.jdbc.Driver"

Url= "Jdbc:mysql://210.56.194.45:3306/jiradb?autoreconnect=true&useunicode=true&characterencoding=utf8"

/>

Modification of key: description=jira//:commercial

Creationdate=2013-5-15

Contactname=liaidong@awcloud.com

Jira. Licenseedition=enterprise

Contactemail=liaidong@awcloud.com

Evaluation=false

Jira. Licensetypename=commercial

Jira.active=true

licenseversion=2

Maintenanceexpirydate=2020-10-01

Organisation=test

Jira. Numberofusers=-1

Serverid=bbrw-eu7o-a5tb-6t2u

Licenseid=lid

Licenseexpirydate=2099-06-01

Purchasedate=2013-5-15

Note:

1. If there is an interruption in the upload process, first delete the original uploaded content: RM-RF upload package name (jdk-7u17-linux-x64.tar.gz)

The way to see it is to call install log Install.log.syslog jdk-7u17-linux-x64.tar.gz to see if it's deleted.

2. If Tomcat boot is also successful, but the page cannot be accessed, use the command Ps-ef|grep tomcat to see if there is a tomcat process, the log has a similar error:/tomcat5/bin/catalina.sh:line 308:/usr/java /jdk1.6.0_22/bin/java:no such file or directory This means that your tomcat did not actually start the success, for two reasons, one is not properly installed JDK, the other is not properly configured Java-related environment variables.

3.JIRA startup failed, JIRA has been locked. The wrong approach: first Look at

The home path configured under the Jira-application.properties (under/atlassian-jira/web-inf/classes) of the Jira application is as follows

Jira.home =/opt/jira/atlassian-jira-5.2.11-standalone

Then find the. Jira-home.lock in its directory. Delete

and restart it.

4.jira 8005 and 8080 ports are revised again, in Server.xml, my modifications are 8007 and 8099.

5. Query port is occupied

Netstat-tln

Netstat-tln | grep Port number

Lsof-i: Port number

kill-9 PID Number

6. Find. jira-home.lock files

[Root@bogon ~]# Find/-name '. Jira-home.lock '

/data/www/jira_home/jiradata/.jira-home.lock

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.