First download the JDK installation package from the official website, upload the JDK installation package to the virtual machine or the server, and create a Java directory under the/usr/local/directory: mkdir Java and so on, specifically look at this article, I hope you have some help
Install Jira under Linux
First step: Install the JDK
1. Download the JDK installation package from the official website
2. Upload the JDK's installation package to a virtual machine or server: SCP file name (jdk-7u17-linux-x64.tar.gz) [email protected] The virtual machine or server (210.56.194.45) to be transmitted
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: extract it first. Tar file: gzip-d file name (jdk-7u17-linux-x64.tar.gz) is extracted into executable file: TAR-XVF file name (Jdk-7u17-linux-x64.tar)
6. Configure the operating environment of the JDK:
Enter Vi/etc/profile open file to add the following content
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 Log Off Login
8.echo $JAVA _home Verify the path to JAVA
Step two: Install MySQL
1. Download MySQL installation package on official website
2. Upload the MySQL installation package to the virtual machine or server: SCP file name (mysql installation package) [email protected] The virtual machine or server (210.56.194.45) to be transmitted
3. Direct Yum install mysql* installation MySQL
4. After the installation is complete/etc/init.d/mysqld start MySQL
5.show databases verifying the success of MySQL
Step three: Install Tomcat
1. Download the Tomcat installation package from the official website
2. Upload the JDK's installation package to a virtual machine or server: SCP file name (apache-tomcat-6.0.20.tar.gz) [email protected] The virtual machine or server (210.56.194.45) to be transmitted
3. Create a Tomcat directory under the/usr/local/directory: mkdir Tomcat
4. Copy the file to the Tomcat directory: CP file name (apache-tomcat-6.0.20.tar.gz)/usr/local/tomcat
5. Unzip the file: extract it first. Tar file: gzip-d file name (apache-tomcat-6.0.20.tar.gz) is extracted into executable file: TAR-XVF file name (Apache-tomcat-6.0.20.tar)
6. Startup tomcat:/usr/local/tomcat/tomcat/bin/startup.sh Success will output the following:
[Email protected] ~]#/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
Fourth Step: Install the Jira file
1. Download the Jira installation file
2. Transfer Jira source files to a virtual machine or server
3. Extract the source files to the/opt/jira, Jira the installation is successful, the next configuration
4. Start the Jira service
command to start Jira:
Opt/jira/atlassian-jira-5.2.11-standalone/bin/startup.sh Starting a virtual machine
Opt/jira/atlassian-jira-5.2.11-standalone/bin/catalina.sh run to view the boot log for the virtual machine
5. Start the successful configuration Jira:
Server.xml Modify the section 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"
/>
Key modification: 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
remark:
1. If there is a break in the upload process, first delete the original uploaded content: Rm-rf uploaded 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 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 with an error similar to the one in the log:/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 that the JDK is not properly installed, and the other is that Java-related environment variables are not properly configured.
3.JIRA startup failed, JIRA has been locked. The wrong approach: first Look at
The home path configured under Jira-application.properties (under/atlassian-jira/web-inf/classes) of the Jira app is as follows
Jira.home =/opt/jira/atlassian-jira-5.2.11-standalone
Then locate the. Jira-home.lock in its directory. Delete
And then restart it, O.
The 4.jira 8005 and 8080 ports are all re-modified, and in Server.xml, my changes 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 the. jira-home.lock file
[[email protected] ~]# Find/-name '. Jira-home.lock '
Installation Jira detailed steps under Linux