jira安裝配置(自 http://milo1976.spaces.live.com/)

花了點時間安裝配置了jira,暫時用的資料庫是mysql5.0.37,web伺服器是tomcat5.5.23

記錄一下吧,省著將來忘記!

1 解壓下載下來的壓縮包atlassian-jira-enterprise-3.8
2
下載http://ibiblio.org/maven/xerces/jars/xercesImpl-2.4.0.jarhttp://ibiblio.org/maven/xml-apis/jars/xml-apis-1.0.b2.jar

並且複製到tools/ant/lib/

3 編輯'edit-webapp/WEB-INF/classes/entityengine.xml'文件

mysql"

這個地方還有一句話來著,叫做schema-name="PUBLIC",一定要去掉,因為是給hsql用的(我就忘記了

...

...

4 在解壓後目錄的根目錄下執行‘build war’,沒錯就對了,有錯應該是jdk什麼的一些基本問題,自己找答案吧

5 如果沒有問題解壓生成的war包到${catalina.home}/webapps/jira下(個人喜好!)

5 看這個網址http://www.atlassian.com/software/jira/docs/v3.8/servers/index.html(如果你用的不是tomcat5.5.x的話)

6 複製dist-tomcat/tomcat-5.5/jira.xmlconf/Catalina/localhost/下(我想弄到tomcat6下來著,但是沒有這個目錄,待我研究研究),修改jira.xml文件:

如果用的不是hsql需要去掉minEvictableIdleTimeMillistimeBetweenEvictionRunsMillis屬性

${catalina.home}/webapps/jira" debug="0">
username="jirauser"
password="1"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost/jiradb?autoReconnect=true&useUnicode=true&characterEncoding=UTF8"
/>


7 上面是在配置資料庫,所以jdbc引擎需要的,複製對應的版本到tomcatlib

8 jira-jars-tomcat5.zip檔需要下載下來,也解壓jartomcatlib

9 修改tomcatconf/server.xml>5.5.15以上適用)

maxThreads="150" minSpareThreads="25" maxSpareThreads="75"

enableLookups="false" redirectPort="8443" acceptCount="100"

connectionTimeout="20000" disableUploadTimeout="true" useBodyEncodingForURI="true"/>

10 發佈看看,應該可以,也許還有問題,呵呵!

0 意見: