操作系统
redhat企业版4up4
软件
atlassian-jira-enterprise-3.7.1.zip
apache-tomcat-5.5.20.tar.gz
jira-jars-tomcat5.zip
mysql-connector-java-3.1.12.tar.gz
jdk-1_5_0_10-linux-i586-rpm.bin
步骤
1 java环境变量
安装jdk-1_5_0_10-linux-i586-rpm.bin
解压缩tomcat并存放到相应目录eg:/opt/tomcat
编辑/etc/profile
JAVA_HOME=/usr/java/jdk1.5.0_10
export PATH=.:$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib:$CLASSPATH
export CATALINA_HOME=/opt/tomcat
export PATH=$CATALINA_HOME/bin:$PATH
编辑/opt/tomcat/bin/startup.sh和shutdown.sh
在# -------------------
下面
export JAVA_HOME=/usr/java/jdk1.5.0_10
重新加载环境变量
2 测试tomcat是否正常
/opt/tomcat/startup.sh
看能否正常显示tomcat初始界面
关闭tomcat
/opt/tomcat/shutdown.sh
2 创建jira数据库和用户
eg:
jirauser:localhost:jira
jiradb
3 安装jira tomcat部分
A windows下解压atlassian-jira-enterprise-3.7.1.zip并拷贝到eg:/opt/jira目录
编辑jira目录下的edit-webapp/WEB-INF/classes/entityengine.xml (JIRA Webapp), and change the field-type-name attribute to mysql. (If you forget to do this and start JIRA, it may create database tables incorrectly. See if this happens to you.) Also delete the schema-name="PUBLIC" attribute:
="mysql"
schema-name="PUBLIC"
helper-class="org.ofbiz.core.entity.GenericHelperDAO"
check-on-start="true"
use-foreign-keys="false"
...
Also in entityengine.xml, ensure the ctory>...saction-factory> tag contains:
ctory class="org.ofbiz.core.entity.transaction.JNDIFactory">
on-jndi jndi-server-name="default" jndi-name="java:comp/env/UserTransaction"/>
nager-jndi jndi-server-name="default" jndi-name="java:comp/env/UserTransaction"/>
actory>
去掉schema-name="PUBLIC"项
添加env在如上两行
B build.sh
Now build JIRA by typing build (Windows) or ./build.sh (Unix) on the command line in the $JIRA_HOME directory. This will produce the deployable WAR file in the $JIRA_HOME/dist-tomcat directory.
会在dist-tomcat目录下按照相应的tomcat版本拷贝相应的jira.xml到
Copy dist-tomcat/tomcat-5.5/jira.xml from the built JIRA distribution to your Tomcat's conf/Catalina/localhost/ directory.
编辑jira.xml如下
username="jirauser"
password="jira"
driverClassName="com.mysql.jdbc.Driver"
&
阅读(1728) | 评论(0) | 转发(0) |