JIRA安裝手記
Posted on 2006-04-07 16:30 何以解憂,唯有學(xué)習(xí)!讓每一個人都能Open Source 閱讀(8609) 評論(10) 編輯 收藏 所屬分類: Web相關(guān)?????????JIRA是由www.atlassian.com開發(fā)的基于J2EE的問題跟蹤管理系統(tǒng),它正被廣泛的被開源軟件組織,以及全球著名的軟件公司使用,它堪稱是J2EE的Bugzilla。
?????????JIRA下載地址http://www.atlassian.com/software/jira
?????????我下載的是jira-enterprise-3.5.3的。
?????????下載回來后,解壓出來,首先你要檢查一下你是否安裝了JDK,如果連JDK都沒裝那你就不要看本文算了,(不裝JDK,那是搞JAVA的)呵呵,開玩笑

?????????安裝了JDK,你還要安裝數(shù)據(jù)庫,數(shù)據(jù)庫可以選擇MySql,或者是Oracle,MSSQL支持不支持不太清楚,等我再找找官方資料再說吧,現(xiàn)在沒空

?????????好,現(xiàn)在我們以MySql為例,裝好數(shù)據(jù)庫后還要下載JDBC驅(qū)動這可以在MySql官方網(wǎng)站http://www.mysql.com/上可以找到,這里有一點要注意的,就是網(wǎng)上的資料說
-----------------下以是引用的------------------------------------
Mysql JDBC驅(qū)動:mysql-connector-java-3.0.14-production-bin.jar ;
注意:Mysql數(shù)據(jù)庫版本和JDBC驅(qū)動要選擇好版本,不然容易出現(xiàn)中文亂碼。
---------------------------------------------------------------------------------------------------------------------------
它沒有說清楚用的是什么版本的,
測試證明,用4.1版本的MySQL跟3.1.8還是會出現(xiàn)亂碼,主要表面在在JIRA在項目信息或是描述為中文是,查看時會出現(xiàn)亂碼,這是,我后來改用5。0的,字符集沒變,問題解決。
接下來就配置conf/server.xml 這個文件了(這個文件不知道在那?KAO,TOMCAT配置過了吧,不懂的BAIDU一下多得是)
---------------------------以下引用官方的說明-------------------
Edit conf/server.xml (or conf/Catalina/localhost/jira.xml if you're not using Standalone), and customize the username, password, driverClassName, and url parameters for the Datasource (here assuming MySQL). Please refer to one of the sections below that applies to your database for more information.
<Server port="8005" shutdown="SHUTDOWN"> <Service name="Catalina"> <Connector port="8080" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" /> <Engine name="Catalina" defaultHost="localhost"> <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"> <Context path="" docBase="${catalina.home}/atlassian-jira" reloadable="true"> <Resource name="jdbc/JiraDS" auth="Container" type="javax.sql.DataSource" username="[enter db username]" password="[enter db password]" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost/jiradb?autoReconnect=true&useUnicode=true&characterEncoding=UTF8" [ delete the minEvictableIdleTimeMillis and timeBetweenEvictionRunsMillis params here ] /> <Resource name="UserTransaction" auth="Container" type="javax.transaction.UserTransaction" factory="org.objectweb.jotm.UserTransactionFactory" jotm.timeout="60"/> <Manager className="org.apache.catalina.session.PersistentManager" saveOnRestart="false"/> </Context> </Host> </Engine> </Service> </Server>
Note: if you can't find this section at all, you've probably got the wrong file - search for mentions of 'jira' in the files under conf/, or ask the person who installed JIRA in Tomcat.
-----------------------------------------------------------------------------------------------------------------------
E文不會看,好,那我就說一下吧,其它的不用你理,你主要注意改一下加粗那部份username為你數(shù)據(jù)庫的用戶名,password為密碼如果用MySql的,driverClassName不用改了。jiradb為數(shù)據(jù)庫名,如果你沒改也不需要改了。
好下面我們來配置第二個文件
---------------------------以下引用官方的說明-------------------
Edit atlassian-jira/WEB-INF/classes/entityengine.xml, and change the field-type-name attribute to the value for your database (valid values are listed in the file). As noted in the comment, other databases/appservers may require other entityengine.xml changes:
<!-- DATASOURCE - You will need to update this tag for your installation. 1. Update field-type-name attribute to match your database. Possible values include: cloudscape, db2, firebird, frontbase, hsql, mckoidb, mysql, mssql, oracle, postgres, postgres72, sapdb, sybase 2. If using Orion, JBoss or Jetty you will need to customize the <jndi-jdbc> tag. See http://www.atlassian.com/software/jira/docs/latest/servers/ 3. If using Postgres 7.3+ (schema-aware), add: schema-name="public" to the datasource attribute list below. If using DB2, add: constraint-name-clip-length="15" to the datasource attribute list below, and an appropriate schema-name attribute, eg: schema-name="DB2INST1" --> <datasource name="defaultDS" field-type-name="mysql" helper-class="org.ofbiz.core.entity.GenericHelperDAO" check-on-start="true" ...
If you forget to do this and start JIRA, it may create database tables incorrectly. See this page if this happens to you
---------------------------------------------------------------------------------------------------------------------------
看到加粗的地方?jīng)]有,用mysql的,就改mysql,這是數(shù)據(jù)庫類型啊。
接下來是最后一項了,運行Mysql命令行,新建一個名為jiradb的數(shù)據(jù)庫,(如果剛才沒改的話)
好了,現(xiàn)在你可以運行了,運行%JIRA_HOME%\bin\startup.bat? 接下來,運行http://localhost:8080
看到效果了吧,現(xiàn)在才是真正的安裝呢,這個過程,它要你輸入用戶名,密碼,跟一些信息,還要輸入license,這個東西你可以在官方主頁上生成一個30天試用期的,具休怎么獲得,這里我不講了,我有3.5.3的破解,可以用一年的,是好友jackrong給的,要的朋友可以聯(lián)系我。
??????好了,這篇是我的處女作啊,介紹得不好,希望大家指點,一起學(xué)習(xí),一起進步!