CentOS installed under 6.5 deploying JIRA

JIRA summary:
JIRA: a professional bug tracking and project management software
JIRA is a project management tool, helping teams create a scheduled task, build and publish outstanding products. Tens of thousands in the world choose to JIRA, use JIRA to capture, organize, management shortcomings, assign tasks, track your team‘s activities. Regardless of the desktop PC and mobile terminal device, JIRA will run perfect, help the team finish the work.
More detailed listing here is not the introduction of; http://www.unlimax.com/JIRA.html and http://www.confluence.CN
CentOS 6.5 installation to configure Jira, Confluence integration environment http://www.linuxidc.com/Linux/2014-07/104406.htm
CentOS 5.3 installation to configure JIRA and Confluence notes http://www.linuxidc.com/Linux/2011-03/33594.htm
System: CentOS 6.5
JDK: jdk-7u60-ea-bin-b15-linux-x64-16_apr_2014.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, extract the JDK
[root@linuxidc jira]# tar -zxf jdk-7u60-ea-bin-b15-linux-x64-16_apr_2014.tar.gz -C /usr/local/
2, creating a flexible connection, append the JDK from the bin down:
[root@linuxidc bin]# cd /usr/bin/
[root@linuxidc bin]# ln -s -f /usr/local/jdk1.7.0_60/jre/bin/java
[root@linuxidc bin]# ln -s -f /usr/local/jdk1.7.0_60/bin/javac
3, configuring JDK environments:
[root@linuxidc bin]# vim /etc/profile
[root@linuxidc bin]# tail -5 /etc/profile
export JAVA_HOME=/usr/local/jdk1.7.0_60
export JAVA_BIN=/usr/local/jdk1.7.0_60/bin
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
4, check to see if the configuration was successful:
[root@linuxidc bin]# java -version
Java version 1.7.0_60-EA # correct version
Java(TM) SE Runtime Environment (build 1.7.0_60-ea-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)
Second, installing Mysql:
1, to create a user:
[root@linuxidc jira]# groupadd -g 306 mysql
[root@linuxidc jira]# useradd -g mysql -u 306 -r mysql
2, creating a data directory:
[root@linuxidc jira]# mkdir -pv /mydata/data
3, change the data directory permissions:
[root@linuxidc jira]# chown -R mysql.mysql /mydata/data
4, unzip Mysql
[root@linuxidc jira]# tar -zxf mysql-5.5.33-linux2.6-x86_64.tar.gz -C /usr/local/
5, create a link:
[root@linuxidc local]# ln -sv mysql-5.5.33-linux2.6-x86_64/ mysql
6, change the owner is a group:
[root@linuxidc local]# cd mysql
[root@linuxidc mysql]# chown -R root:mysql ./*
7, initialize MySQL
[root@linuxidc mysql]# scripts/mysql_install_db –user=mysql –datadir=/mydata/data
8, create a startup script and empowerment:
[root@linuxidc mysql]# cp support-files/mysql.server /etc/rc.d/init.d/mysqld
[root@linuxidc mysql]# chmod +x /etc/rc.d/init.d/mysqld
9, creating and modifying configuration files:
[root@linuxidc mysql]# cp support-files/my-large.cnf /etc/my.cnf
[root@linuxidc mysql]# vim /etc/my.cnf
Specify the location of MySQL data files, add the following line: datadir =/mydata/data
10, change environment variables:
[root@linuxidc mysql]# vim /etc/profile.d/mysql.sh
[root@linuxidc mysql]# cat /etc/profile.d/mysql.sh
Export PATH=/usr/local/mysql/bin:$PATH to add this line
[root@linuxidc mysql]# . /etc/profile.d/mysql.sh
11, start the MySQL server:
[root@linuxidc mysql]# service mysqld start
Third, configure the MySQL database:
To create the database:
Grant permissions to connect a database:
mysql> grant all privileges on jira.* to jirasa@’192.168.100.%’ identified by ‘jira123’;
mysql> flush privileges;
Four, install and configure JIRA server:
1, extract JIRA:
[root@linuxidc jira]# tar -zxf atlassian-jira-6.0.3.tar.gz -C /usr/local/
[root@linuxidc local]# mv atlassian-jira-6.0.3-standalone/ jira
2, create a JIRA installation directory:
[root@linuxidc jira]# mkdir jira_home
[root@linuxidc jira]# vim atlassian-jira/WEB-INF/classes/jira-application.properties
[root@linuxidc jira]# cat atlassian-jira/WEB-INF/classes/jira-application.properties
jira.home = /usr/local/jira/jira_home
3, it is understood that JIRA does not support MySQL, so you need to add MySQL module
[root@linuxidc bin]# pwd
[root@linuxidc bin]# cp /root/jira/mysql-connector-java-5.0.3-bin.jar .
4, start the JIRA server:
[root@linuxidc bin]# pwd
[root@linuxidc bin]# ./startup.sh