JIRA installation and deployment

Source: Internet
Author: User

JIRA Installation

 

I,Learn about JIRA

JIRA is a popular Management System Based on Java architecture. It is a commercial software integrating project planning, Task Assignment, requirement management, and Error Tracking. It has comprehensive functions and friendly interfaces, simple installation, flexible configuration, and excellent permission management and scalability.

Because it is based on JAVA, the JAVA environment is required. Because it is a commercial software, a license key is required.

II,Installation Process

1. Basic Environment (take the environment in practice as an example)

Operating System: Linux (used RHEL 5.4)

2. Thinking process
The correct way of thinking:

Avel directly downloads the jiraprogram, installs readme.txt in the unzip package, or some software packages also have an INSTALL

B. Based on the official JIRA installation method, refer to other articles found by google.

C. perform a detailed analysis.

3. Download JIRA

JIRA Official Website: http://www.atlassian.com/software/jira/

4、‑readme.txt Installation

-------

Step 2. Install the JDK environment and configure java environment variables

Chmod + x jdk-6u14-linux-i586.bin

/Jdk-6u14-linux-i586.bin

Mv jdk1.6.0 _ 14/usr/local/jdk

Add at the end of/etc/profile

JAVA_HOME =/usr/local/jdk

CLASSPATH =.: $ JAVA_HOME/lib/tools. jar: $ JAVA_HOME/lib/dt. jar

PATH = $ JAVA_HOME/bin: $ PATH

Export JAVA_HOME

Export PATH

Export CLASSPATH

Need to restart the machine

Check whether it is successful:

Use java-version

You can also compile a hello. java test file.

 

Step 2: install tomcat

 

1. Download apache-tomcat-7.0.2.tar.gz

2. # tar -zxvfapache-tomcat-7.0.2.tar.gz; // decompress

3. Configure the environment variable/etc/profile

CATALINA_HOME =/usr/local/apache-tomcat-7.0.2
Export CATALINA_HOME

 

4../tomcat/bin/startup. sh; // start tomcat

Display UsingCATALINA_BASE:

Using CATALINA_HOME:

Using CATALINA_TEMDIR:

Using JAVA_HOME:

It indicates that Tomcat has been installed and started successfully. You can enter http: // localhost: 8080 to view

Note: whether the firewall enables iptables for port 8080

Check whether port 8080 is occupied. Modify the conf/server. xml file.

Ps-ef | grep tomcat view Process

 

 

Step 2: Configure MYSQL

Create database: create database jiradb characterset utf8;

 

Create User Permissions
Grant all privileges on jiradb. * to jirauser @ localhost identified by 'mypassword' with grant option;

 
Flush privileges;

 

Step 2: Install the MYSQL/JJDBC driver

The function is to allow JAVA to connect to MYSQL through JDBC
Put the mysql-connector-java-xxx-bin.jar file into tomcat/lib, or under the lib file of jira

 

Step 2: Install jira

 

1,Create the directory mkdir/var/jira_home used when Jira is running.

2,Go to the official website of the Atlantic to download jira, address: http://www.atlassian.com/download/, pay attention to the download do not select the "Standalone" version, to download the war package format, atlassian-jira-4.3.4-war

3,Decompress the package to a directory, enter the Jira directory, and add the execution permission to build. sh. After running the package, a war package is automatically generatedDist-tomcat/tomcat-6/atlassian-jira-4.3.4.war

4,We need to copy the war package to the webapps directory under tomcat ($ CATALINA_HOME/webapps)

5,Start tomcat to decompress it, stop Tomcat, and copy the directory extracted from webapps/Home/http/jira-4.3.2 (this step is just a habit and can also be removed ),Delete

6. modify:Vi/home/jira/conf/context. xml
Modify to the following items:
<Context path = "/jira" docBase = "/home/http/atlassian-jira-4.3.2">
<Parameter name = "jira. home" value = "/var/jira_home"/>
<Resource name = "jdbc/JiraDS" auth = "Container" type = "javax. SQL. DataSource"
Username = "jira" database username
Password = "jira" Database password
DriverClassName = "com. mysql. jdbc. Driver"
Url = "jdbc: mysql: // localhost/jiradb? AutoReconnect = true & amp; useUnicode = true & amp; characterEncoding = UTF8 "jiradb is the database name
MaxActive = "20"
ValidationQuery = "select 1"/>
<Resource name = "UserTransaction" auth = "Container" type = "javax. transaction. userTransaction "factory =" org. objectweb. jotm. userTransactionFactory "jotm. timeout = "60"/>
<Manager pathname = ""/>
</Context>

Modify B,
Vim/home/jira/atlassian-jira/WEB_INF/classes/entityengine. xml
Change the hsql to the mysql database type <datasource name = "defaultDS" field-type-name = "hsql"
<Datasource name = "defaultDS" field-type-name = "mysql"
Delete schema-name = "PUBLIC"

Step 2: crack

 

After referring to the document of the netizens, I chose to use the iNViSiBLE cracking and keygen program, the specific documentation can be seen: http://tonyty163.blog.51cto.com/721698/463101

Download the iNViSiBLE.zip program:/Files/helloLinux/iNViSiBLE.zip. Note that the program can be run only after jdk is configured in the system. For windows users, run. bat. For linux users, run the. sh script.

The Program Patches/home/http/jira/atlassian-jira/WEB-INF/lib/atlassian-extras-2.2.2.jar and overwrites the file again. I will not describe this process here.

 

 

Step 2: run the JIRA Service

* Uix uses bin/starup. shwindows in the root directory of JIRA to use bin \ startup. bat.

After running, you can view the log under logs and report an error.

4. Point your browser at http: // localhost: 8080/

You shoshould see JIRA's Setup Wizard.

Step 7: Access JIRA

Check through http: // JIRA_server_ip: 8080. If the interface is displayed, it indicates that the configuration is correct. If 404 is reported, other problems may occur.

By carefully checking whether the configuration file is correct or wrong, it is likely that your MYSQL connection is incorrect.

Iii. troubleshooting

Most people may not be able to install it smoothly for the first time. I have encountered many problems. How can I troubleshoot the problems? There must be no small number of logs.

If a problem occurs, check the catalina.2009-07-14.log and catalina. out logs under logs, but only two errors can be returned.

1. Create log4j. properties

Vim/home/jira/common/classes/log4j. properties

Log4j. rootLogger = DEBUG, R
Log4j. appender. r = org. Apache. log4j. rollingfileappender
Log4j. appender. R. File =$ {Catalina. Home}/logs/tomcat. Log
Log4j. appender. R. maxfilesize = 10 MB
Log4j. appender. R. maxbackupindex = 10
Log4j. appender. R. layout = org. Apache. log4j. patternlayout
Log4j. appender. R. layout. conversionpattern = % P % T % C-% m % N

2. Download log4j

Wget http://apache.freelamp.com/logging/log4j/1.2.15/apache-log4j-1.2.15.tar.gz

Tar zxvf apache-log4j-1.2.15.tar.gz

Cp apache-log4j-1.2.15/log4j-1.2.15.jar/home/jira/common/lib/

3. Download commons logging

Wgethttp: // apache.freelamp.com/commons/logging/binaries/commons-logging-1.1.1-bin.tar.gz

Tar zxvf commons-logging-1.1.1-bin.tar.gz

Cp commons-logging-1.1.1/commons-logging-1.1.1.jar/home/jira/common/lib/

In this way, restart JIRA after the configuration, and you can see the more detailed records in the log.

The first is that the atlassian-jira.log is generated under the directory where the JIRA Service is currently started

Tail f atlassian-jira.log

The second catalina. out in logs is the same as the preceding log Content.

Analysis:

Here is a detailed analysis of the problems I encountered:

The earliest error in Log retrieval

Problem A, main ERROR [jira. appconsistency. db. DatabaseConsistencyCheck] There was a SQL exceptionchecking for database driver correctness. Skipping

17:12:57, 743 main ERROR [core. entity. jdbc. DatabaseUtil] Unable toesablish a connection with the database... Errorwas: org. apache. tomcat. dbcp. dbcp. SQLNestedExceptio

N: Cannot load JDBC driver class 'org. mysql. jdbc. Driver'

This is a wrong name. When you reinstall the Driver several times, you should change 'org. mysql. jdbc. Driver'

'Com. mysql. jdbc. Driver'

Problem B: org. apache. tomcat. dbcp. dbcp. SQLNestedException: Cannot createPoolableConnectionFactory (Server connection failure during transaction. Due tounderlying exception: 'java. net. ConnectException: Connection refused '.

The connection is rejected. In fact, this is the root cause of the failure. I used slackware 12.1's default mysql service to start as skip-network, which means it cannot be accessed through the network, however, it is possible to manually connect to the local host, which causes problems.

Solution: Remove-skip-network from the startup script.

Question C: RG. apache. tomcat. DBCP. DBCP. sqlnestedexception: cannot create poolableconnectionfactory (server connection failure duringtransaction. due to underlying exception: 'java. SQL. sqlexception: Access deniedfor user 'jirauser' @ '127. 0.0.1 '(using password: Yes )'.

The access is rejected, but the obvious access method is jirauser' @ '127. 0.0.1 '. This is very strange. Why does the configuration use localhost but 127.0.0.1 for access? Although the logic is the same, it seems that MySQL cannot be distinguished, so a permission is added to 127.0.0.1.

Solution: grant all privileges on jiradb. * tojirauser @ '2017. 0.0.1 'identified by 'mypassword' with grant option;

Finally, the log is displayed.

Database Configuration OK

___ Database Configuration _______

Loading entityengine. XML from: file:/home/atlassian-jira-enterprise-3.13.4-standalone/Atlassian-Jira/WEB-INF/classes/entityengine. xml

Entity model data source name: defaultds

Entity model field type name: MySQL

Entity model schema Name:

Database Version: MySQL-5.0.51b-log

Database Driver: MySQL-AB JDBC Driver-mysql-connector-java-5.0.5 ($ Date: 00:01:06 + 0100 (Thu, 01 Mar 2007) $, $ Revision: 6329 $)

Database URL: jdbc: mysql: // localhost: 3306/jiradb? AutoReconnect = true & useUnicode = true & characterEncoding = UTF8

Database JNDI address: java: comp/env/jdbc/JiraDS

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.