一、安装JDK+tomcat

1.下载JDK

  http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u2-download-1377129.html

2.安装JDK(RPM方式)

   rpm -ivh jdk-7u2-linux-i586.rpm

3.下载tomcat

   wget http://apache.etoak.com/tomcat/tomcat-7/v7.0.23/bin/apache-tomcat-    7.0.23.tar.gz

4.安装tomcat

  tar zxvf apache-tomcat-7.0.23.tar.gz

  mv apache-tomcat-7.0.23 /usr/local/tomcat

  修改/etc/profile

  export CATALINA_HOME=/usr/local/tomcat

  export CLASSPATH=$JAVA_HOME/lib:$CATALINA_HOME/lib

  export PATH=$PATH:$CATALINA_HOME/bin

  export JAVA_HOME=/usr/java/jdk1.7.0_02

  source /etc/profile

  /usr/local/tomcat/bin/catalina.sh start (关闭tomcat ./shutdown.sh stop)

  java -version

    屏幕输出:

    java version "1.7.0_02"

    Java(TM) SE Runtime Environment (build 1.7.0_02-b13)

    Java HotSpot(TM) Client VM (build 22.0-b10, mixed mode, sharing)

    安装完毕

  netstat -ntl |grep 8080

  http://localhost:8080/

 5.安装JIRA

  wget http://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-4.4.4-x32.bin

  wget http://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-4.4.4-x64.bin

  chmod 755 atlassian-jira-4.4.4-x32.bin

  ./atlassian-jira-4.4.4-x32.bin

  出现提示:

Unpacking JRE ...

Starting Installer ...

This will install JIRA 4.4 on your computer.  #安装jira4.4在你的机器上。

OK [o, Enter], Cancel [c]                 # 按回车确认安装

If JIRA is already installed on this machine, please read the following information carefully.Please choose between creating a new JIRA installation or upgrading an existing JIRA installation.

#如果j ira已经安装在这台机器,请阅读以下资料仔细。请选择创建一个新的j ira之间安装或升级现有的jira安装。

 Create a new JIRA installation. [1, Enter], Upgrade an existing JIRA installation. [2]  #直接回车,安装新的

#创建一个新的j ira安装[1],更新现有的j ira安装[2]。

Where should JIRA 4.4 be installed?  #安装路径。本人安装在/usr/local/jira ,在后面输入/usr/local/jira ,按回车;

[/opt/atlassian/jira]

/usr/local/jira

Default location for JIRA data    #存放数据路径,本人安装在/usr/local/jira_home,在后面输入/usr/local/jira_home ,按回车;

[/var/atlassian/application-data/jira]

/usr/local/jira_home

Configure which ports JIRA will use.

JIRA requires two TCP ports that are not being used by any other

applications on this machine. The HTTP port is where you will access JIRA

through your browser. The Control port is used to Startup and Shutdown JIRA.

#配置一种端口。需要两个TCP端口j ira不被任何其他应用占用。HTTP端口,你将通过浏览器访问j ira

Use default ports (HTTP: 8080, Control: 8005) - Recommended [1, Enter], Set custom value for HTTP and Control ports [2]

#使用默认端口(HTTP:8080 ,控制:8005)——建议[1]],

JIRA can be run in the background.

You may choose to run JIRA as a service, which means it will start

automatically whenever the computer restarts.

Install JIRA as Service?

Yes [y, Enter], No [n]             #按回车

#让 j ira可以在后台运行。当计算机重启时自动启动jira程序。

Setup has finished installing JIRA 4.4 on your computer.

JIRA 4.4 can be accessed at http://localhost:8080

Finishing installation ...

下载插件文件:

对于JIRA4.3及以上版本,将文件名称修改为jira-lang-zh_CN-JIRA版本号.jar

将插件复制到JIRA安装路径下:/usr/local/jira/atlassian-jira/WEB-INF/lib

重新启动JIRA服务:service jira start

停止JIRA服务:server jiar stop

  6.安装mysql驱动

    wget http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-       java-5.1.13.tar.gz/from/http://gd.tuwien.ac.at/db/mysql/

    tar zxvf java-5.1.13.tar.gz

    cp mysql-connector-java-5.1.13-bin.jar /usr/local/jira/atlassian-jira/WEB-INF/lib

 7.创建数据库

   create database jira character set utf8;

   grant all on jira.* to 'jira'@'localhost' indentified by 'jira';

   flush privileges;

   quit;

 

参考文档:             http://confluence.atlassian.com/display/JIRA043/JIRA+Documentation

         https://answers.atlassian.com/

         http://www.atlassian.com/resources/support