1. 下载
atlassian-jira-enterprise-4.2.4-b591.zip解压版
apache-tomcat-6.0.16.zip解压版
Mysql5.1-win32安装版
1. 解压到F:\wuhan\Atlassian\JiraDemo1下
2. 路径:
F:\wuhan\Atlassian\JiraDemo1\atlassian-jira-enterprise-4.2.4-b591
F:\wuhan\Atlassian\JiraDemo1\apache-tomcat-6.0.16
1. 配置
$JIRA_INSTALL = F:\wuhan\Atlassian\JiraDemo1\atlassian-jira-enterprise-4.2.4-b591
$TOMCA_INSTALL=F:\wuhan\Atlassian\JiraDemo1\apache-tomcat-6.0.16
配置数据库:
修改$JIRA_INSTALL/edit-webapp/WEB-INF/l
内容如下:
<datasource name="defaultDS"
field-type-name="mysql"
helper-class="ntity.GenericHelperDAO"
check-on-start="true"
use-foreign-keys="false"
use-foreign-key-indices="false"
check-fks-on-start="false"
check-fk-indices-on-start="false"
add-missing-on-start="true">
<jndi-jdbc jndi-server-name="default"
jndi-name="java:comp/env/jdbc/JiraDS" />
</datasource>
确定有以下内容
<transaction-factory class="ansaction.JNDIFactory">
<user-transaction-jndi jndi-server-name="default" jndi-name="java:comp/env/UserTransaction"/>
<transaction-manager-jndi jndi-server-name="default" jndi-name="java:comp/env/UserTransaction"/>
</transaction-factory>
设置JIRA Home,用来保存JIRA的数据,需指定绝对路径
新建F:/wuhan/Atlassian/JiraDemo1/home
打开$JIRA_INSTALL\edit-webapp\WEB-INF\classes\jira-application.properties
增加jira.home = F:/wuhan/Atlassian/JiraDemo1/home
1. mysql下载jar包构建JIRA
运行$JIRA_INSTALL\build.bat
会在$JIRA_INSTALL\dist-tomcat下产生各种版本的WAR包
1. 下载JIRA需要的JAR包
www.atlassian/software/jira/downloads/binary/jira-jars-tomcat-distribution-4.3-rc1-tomcat-6x.zip
并把它解压到$TOMCA_INSTALL/lib下
保证$TOMCA_INSTALL/lib下有commons-logging-1.0.4.jar log4j-1.2.15.jar
1. 配置TOMCAT
新建$TOMCA_INSTALL/canf/Catalina/localhost/
复制$TOMCA_INSTALL/dist-tomcat/l到$TOMCA_INSTALL/Catalina/localhost/
修改,内容如下:
<Resource name="jdbc/JiraDS" auth="Container" type="javax.sql.DataSource"
username="root"
password="root"
driverClassName="sql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/jiradb?useUnicode=true&characterEncoding=UTF8"
maxActive="20"
validationQuery="select 1"
/>
1. 修改l,增加编码设置
内容如下:
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" URIEncoding="UTF-8"/>
1. 增加TOMCAT启动参数
在$TOMCA_INSTALL/bin用txt编辑器打开startup.bat,在开始处增加
set CATALINA_OPTS=%CATALINA_OPTS% -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Dmail.mime.decodeparameters=true -Xms128m -Xmx512m -XX:MaxPermSize=256m
1. Start Tomcat
双击$TOMCA_INSTALL/bin/startup.bat
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论