In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "the detailed process of installing jira under linux". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn "the detailed process of installing jira under linux"!
Install jira under linux
Step 1: install jdk
1. Download the installation package for jdk from the official website
two。 Upload the installation package of jdk to the virtual machine or server: scp file name (jdk-7u17-linux-x64.tar.gz) the virtual machine or server to be uploaded by root@ (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. Decompress the file: decompress it first. Tar file: gzip-d file name (jdk-7u17-linux-x64.tar.gz) is extracted into an executable file: tar-xvf file name (jdk-7u17-linux-x64.tar)
6. Configure the operating environment for jdk:
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
seven. Logout logout login
8.echo $JAVA_HOME verify the path of java
Step 2: install mysql
1. Download the mysql installation package on the official website
two。 Upload the installation package of mysql to the virtual machine or server: scp file name (installation package of mysql) the virtual machine or server to be uploaded by root@ (210.56.194.45)
3. Install mysql directly with yum install mysql*
4. / etc/init.d/mysqld start starts mysql after installation is complete
5.show databases verifies the success of mysql
Step 3: install tomcat
1. Download the installation package for tomcat from the official website
two。 Upload the installation package of jdk to the virtual machine or server: scp file name (apache-tomcat-6.0.20.tar.gz) the virtual machine or server to be uploaded by root@ (210.56.194.45)
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. Decompress the file: decompress it first. Tar file: gzip-d file name (apache-tomcat-6.0.20.tar.gz) is extracted into an executable file: tar-xvf file name (apache-tomcat-6.0.20.tar)
6. If you start tomcat:/usr/local/tomcat/tomcat/bin/startup.sh successfully, you 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 4: install the jira file
1. Download the installation file for jira
two。 Transfer the source files of jira to a virtual machine or server
3. When the decompression source unzips the source file to the bottom of / opt/jira, jira is installed successfully, and then configure
4. Start the jira service
Command to start jira:
Opt/jira/atlassian-jira-5.2.11-standalone/bin/startup.sh starts the virtual machine
Opt/jira/atlassian-jira-5.2.11-standalone/bin/catalina.sh run views the startup log of the virtual machine
5. Start the configuration jira successfully:
Server.xml modifies parts 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 an interruption occurs during the upload process, the original uploaded content is deleted first: rm-rf uploaded package name (jdk-7u17-linux-x64.tar.gz)
The way to check is to call install log install.log.syslog jdk-7u17-linux-x64.tar.gz to see if it has been deleted
two。 If the tomcat startup is also successful, but the page cannot be accessed, use the command ps-ef | grep tomcat to check whether there is a process with tomcat. There are errors in the log similar to: / Tomcat5/bin/catalina.sh: line 308: / usr/java/jdk1.6.0_22/bin/java: No such file or directory. This shows that your tomcat is not really successful, for two reasons, one is that jdk is not installed correctly. The other is that the environment variables related to java are not configured correctly.
3.JIRA startup failed, JIRA has been locked. The wrong way to deal with it: look at it first.
The home path configured under 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 .jira-home.lock in its directory. Delete
Restart it again and it will be over.
Ports 8005 and 8080 of 4.jira have been re-modified. In server.xml, mine has been modified to 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
[root@bogon ~] # find /-name '.jira-home.lock'
/ data/www/jira_home/jiradata/.jira-home.lock
At this point, I believe you have a deeper understanding of "the detailed process of installing jira under linux". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.