Installation of jira under linux

The first step of installing jira under linux

: Install jdk

1. Download the jdk installation package from the official website

2. Upload the jdk installation package to the virtual machine or server: scp file name (jdk-7u17-linux-x64.tar.gz) root @The virtual machine or server to be transferred (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 file name (jdk-7u17-linux -x64.tar.gz) /usr/local/java

5. Unzip the file: unzip it first. tar file: gzip -d file name (jdk-7u17-linux-x64.tar.gz) is decompressed into an executable file: tar -xvf file name (jdk-7u17-linux-x64.tar)

6. Configure the operation of jdk Environment:

Enter vi /etc/profile to open the file and 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 logout

8. echo $JAVA_HOME to verify the path of java

Step 2 : Install mysql

1. Download the mysql installation package from the official website

2. Upload the mysql installation package to the virtual machine or server: scp file name (mysql installation package) root@the virtual machine or server to be uploaded (210.56.194.45)

3. Direct yum install mysql* to install mysql

4. The installation is complete After /etc/init.d/mysqld start start mysql

5.show databases to verify the success of mysql Step

3 : Install tomcat

1. Download the tomcat installation package from the official website

2. Upload the jdk installation package to the virtual machine or server: scp File name (apache-tomcat-6.0.20.tar.gz) root@virtual machine or server to be uploaded (210.56.194.45)

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

4. Put Copy the file to the tomcat directory: cp file name (apache-tomcat-6.0.20.tar.gz) /usr/local/tomcat

5. Unzip the file: unzip it first. Tar file: gzip -d filename (apache-tomcat-6.0.20.tar.gz) Decompression into executable file: tar -xvf filename (apache-tomcat-6.0.20.tar)

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

[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

Four steps: install the jira file

1. Download the jira installation file

2. Transfer the jira source file to the virtual machine or server

3. Unzip the source Unzip the source file to /opt/jira, the installation of jira is successful, then Configuration

4. Start the jira service

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. Successfully configured jira:

server.xml Modify the part of the database:

modify the port number

Configure the 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"

/>

密钥的修改:Description=JIRA//:COMMERCIAL

CreationDate=2013-5-15

[email protected]

jira.LicenseEdition=ENTERPRISE

[email protected]

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

备注:

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

is viewed by calling install log install.log.syslog jdk-

7u17 -linux-x64.tar.gz to see if it is deleted /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 really start the success, there are two reasons, one is not correct Install jdk, the other is that the java-related environment variables are not properly configured.

3. JIRA startup failed, JIRA has been locked. The wrong solution: first look at

the jira-application.properties of the jira application (under /atlassian-jira/WEB-INF/classes) The home path configured under

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

and then find .jira-home.lock in its directory. Delete

it and restart it.

4. Re-modify the ports 8005 and 8080 of jira. In server.xml, my modifications are 8007 and 8099.

5. The query port is occupied by

netstat -tln

netstat -tln | grep port number

lsof -i: port number

kill -9 PID number

6. Find the .jira-home.lock file

[root@bogon ~]# find / -name '.jira-home.lock'

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

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326560760&siteId=291194637