环境:Linux+jdk+atlassian-jira-enterprise-4.0.2-standalone+mysql
  一、安装、配置jdk
  1、安装jdk
  chmod +x jdk-6u21-linux-i586.bin
  ./jdk-6u21-linux-i586.bin
  mv jdk1.6.0_21 /usr/local/jdk
  2、设置jdk环境

 

vi /etc/profile
JAVA_HOME=/usr/local/jdk
JRE_HOME=/usr/local/jdk/jre
CLASSPATH=.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar
PATH=$JAVA_HOME/bin:$PATH
export JAVA_HOME
export JRE_HOME
export PATH
export CLASSPATH
source /etc/profile

  二、安装mysql、及相应配置
  mysql安装步骤忽略。下面说下部署jira的前mysql上的相关设置
  创建jiradb库    mysql> create database jiradb character set utf8;
  添加一个用户,名为jira_user密码为1qaz@WSX,并赋予连接权限
  mysql> grant all privileges on *.* to 'jira_user'@'%' identified by '1qaz@WSX ' with grant option;
  mysql> grant all privileges on *.* to ‘jira_user’@localhost identified by '1qaz@WSX ' with grant option;
  mysql> flush privileges;
  三、安装jira
  1)tar zxvf atlassian-jira-enterprise-4.0.2-standalone.tar.gz
  mv atlassian-jira-enterprise-4.0.2-standalone /usr/local/jira
  2) 解压mysql-connector-java-5.0.8.tar.gz,
  将目录里的mysql-connector-java-5.0.8-bin.jar 文件拷到 /usr/local/jira/common/lib/ 目录下
  3) 编辑conf/server.xml

 

<Server port="8015" shutdown="SHUTDOWN">
<Service name="Catalina">
<Connector port="8090"
<Context path="" docBase="${catalina.home}/atlassian-jira" reloadable="false">
<Resource name="jdbc/JiraDS" auth="Container" type="javax.sql.DataSource"
username="jira_user"
password="1qaz@WSX"
driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://192.168.170.102/jiradb"