Build jira6.4.3

Source: Internet
Author: User

Environment Introduction:


System: CentOS 6.5


Jdk:jdk-7u71-linux-x64.tar.gz


Mysql:mysql-5.5.33-linux2.6-x86_64.tar.gz


Jira:atlassian-jira-6.0.3.tar.gz


First, install the JDK


1. Unzip the JDK


[Email protected] jira]# TAR-ZXF jdk-7u71-linux-x64.tar.gz-c/usr/local/


3. Configure the JDK environment:


[Email protected] bin]# Vim/etc/profile


[Email protected] bin]# tail-6/etc/profile


#jdk


Java_home=/usr/local/jdk1.7.0_71


Jre_home=/usr/local/jdk1.7.0_71/jre


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


Classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar: $JRE _home/lib


Export Java_home jre_home PATH CLASSPATH

[Email protected] bin]# Source/etc/profile


4. See if the configuration is successful:


[Email protected] bin]# java-version


Java version "1.7.0_71" #版本正确


Java (TM) SE Runtime Environment (build 1.7.0_71-b14)


Java HotSpot (TM) 64-bit Server VM (build 24.71-b01, Mixed mode)


Second, install MySQL:


1. Create User:


[[email protected] jira]# groupadd-g 306 MySQL


[Email protected] jira]# useradd-g mysql-u 306-r MySQL


2. Create Data directory:


[Email protected] jira]# Mkdir-pv/mydata/data


3. Change Data Directory permissions:


[Email protected] jira]# chown-r mysql.mysql/mydata/data


4. Unzip MySQL


[Email protected] jira]# TAR-ZXF mysql-5.5.33-linux2.6-x86_64.tar.gz-c/usr/local/


5. Create a link:


[Email protected] local]# LN-SV mysql-5.5.33-linux2.6-x86_64/mysql


6, the change belongs to the main group:


[[Email protected] local]# CD MySQL


[Email protected] mysql]# chown-r root:mysql./*


7. Initialize MySQL


[Email protected] mysql]# scripts/mysql_install_db--user=mysql--datadir=/mydata/data


8. Create a startup script and empower:


[email protected] mysql]# CP support-files/mysql.server/etc/rc.d/init.d/mysqld


[Email protected] mysql]# chmod +x/etc/rc.d/init.d/mysqld


9. Create and modify the configuration file:


[email protected] mysql]# CP support-files/my-large.cnf/etc/my.cnf


[Email protected] mysql]# VIM/ETC/MY.CNF


Add the following line to specify where the MySQL data file is stored: DataDir =/mydata/data


10. Change the Environment variables:


[Email protected] mysql]# vim/etc/profile.d/mysql.sh


[Email protected] mysql]# cat/etc/profile.d/mysql.sh


Export Path=/usr/local/mysql/bin: $PATH Add this line


[Email protected] mysql]#. /etc/profile.d/mysql.sh


11. Start the MySQL server:


[[Email protected] mysql]# service mysqld start


Third, configure MySQL database:


To create a database:


mysql> CREATE DATABASE jira DEFAULT CHARACTER SET UTF8 COLLATE utf8_general_ci;


To grant access to the secondary database:


Mysql> grant all privileges in jira.* to [e-mail protected] ' 192.168.100.% ' identified by ' jira123 ';


mysql> flush Privileges;


Iv. installation Configuration Jira server:


1, decompression Jira:


[Email protected] jira]# TAR-ZXF atlassian-jira-6.0.3.tar.gz-c/usr/local/


[Email protected] local]# MV Atlassian-jira-6.0.3-standalone/jira


2. Create the Jira installation directory:


[Email protected] jira]# mkdir jira_home


[Email protected] jira]# vim atlassian-jira/web-inf/classes/jira-application.properties


[email protected] jira]# cat atlassian-jira/web-inf/classes/jira-application.properties


Jira.home =/usr/local/jira/jira_home


3, Jira does not support MySQL, so need to add MySQL module


[Email protected] bin]# pwd


/usr/local/jira/bin


[Email protected] bin]# Cp/root/jira/mysql-connector-java-5.0.3-bin.jar.



4. Start the Jira server:


[Email protected] bin]# pwd


/usr/local/jira/bin


[Email protected] bin]#./startup.sh



5. View port: Default binding 8080 Port


[Email protected] bin]# SS-TANLP


State recv-q send-q Local address:port Peer address:port


LISTEN 0::: 8080:::* Users: ((" Java ", 4432,52))


LISTEN 0::: +:::* Users: ((" Sshd ", 1100,4))


LISTEN 0 *:22 *:* Users: (("SS HD ", 1100, 3))


LISTEN 0:: 1:25:::* Users: (("M Aster ", 1176,13))


LISTEN 0 127.0.0.1:25 *:* Users: (("Ma Ster ", 1176,12))


LISTEN 0 127.0.0.1:6010 *:* Users: (("SS HD ", 1215,8))


LISTEN 0:: 1:6010:::* Users: ("s SHD ", 1215,7))


LISTEN 0 127.0.0.1:6011 *:* Users: (("SS HD ", 1259,8))


LISTEN 0:: 1:6011:::* Users: ("s SHD ", 1259,7))


LISTEN 0 *:3306 *:* Users: (("M Ysqld ", 3912,11))


6, Installation Jira


Enter the IP address in the browser port is 8080 access Jira


Build jira6.4.3

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.