廉颇老矣,尚能饭否

java:从技术到管理

常用链接

统计

最新评论

JIRA安装手记【转载】

昨晚下班,在好友jackrong处听闻JIRA,就立刻下载,安装使用一下,网上有一些安装的介绍的文章,但是,有一些误区,这里就写下自己的安装经验。
         JIRA是由www.atlassian.com开发的基于J2EE的问题跟踪管理系统,它正被广泛的被开源软件组织,以及全球著名的软件公司使用,它堪称是J2EE的Bugzilla。
         JIRA下载地址http://www.atlassian.com/software/jira
         我下载的是jira-enterprise-3.5.3的。
         下载回来后,解压出来,首先你要检查一下你是否安装了JDK,如果连JDK都没装那你就不要看本文算了,(不装JDK,那是搞JAVA的)呵呵,开玩笑
         安装了JDK,你还要安装数据库,数据库可以选择MySql,或者是Oracle,MSSQL支持不支持不太清楚,等我再找找官方资料再说吧,现在没空
         好,现在我们以MySql为例,装好数据库后还要下载JDBC驱动这可以在MySql官方网站http://www.mysql.com/上可以找到,这里有一点要注意的,就是网上的资料说

-----------------下以是引用的------------------------------------
Mysql JDBC驱动:mysql-connector-java-3.0.14-production-bin.jar ;

注意:Mysql数据库版本和JDBC驱动要选择好版本,不然容易出现中文乱码。

---------------------------------------------------------------------------------------------------------------------------
它没有说清楚用的是什么版本的,
测试证明,用4.1版本的MySQL跟3.1.8还是会出现乱码,主要表面在在JIRA在项目信息或是描述为中文是,查看时会出现乱码,这是,我后来改用5。0的,字符集没变,问题解决。

接下来就配置conf/server.xml 这个文件了(这个文件不知道在那?KAO,TOMCAT配置过了吧,不懂的BAIDU一下多得是)

---------------------------以下引用官方的说明-------------------

  1. 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&amp;useUnicode=true&amp;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为你数据库的用户名,password为密码如果用MySql的,driverClassName不用改了。jiradb为数据库名,如果你没改也不需要改了。

好下面我们来配置第二个文件

---------------------------以下引用官方的说明-------------------

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
---------------------------------------------------------------------------------------------------------------------------

看到加粗的地方没有,用mysql的,就改mysql,这是数据库类型啊。
接下来是最后一项了,运行Mysql命令行,新建一个名为jiradb的数据库,(如果刚才没改的话)

好了,现在你可以运行了,运行%JIRA_HOME%\bin\startup.bat  接下来,运行http://localhost:8080
看到效果了吧,现在才是真正的安装呢,这个过程,它要你输入用户名,密码,跟一些信息,还要输入license,这个东西你可以在官方主页上生成一个30天试用期的,具休怎么获得,这里我不讲了,我有3.5.3的破解,可以用一年的,是好友jackrong给的,要的朋友可以联系我。
      好了,这篇是我的处女作啊,介绍得不好,希望大家指点,一起学习,一起进步!



柳德才
13691193654
18942949207
QQ:422157370
liudecai_zan@126.com
湖北-武汉-江夏-庙山

posted on 2009-04-28 14:13 liudecai_zan@126.com 阅读(1616) 评论(0)  编辑  收藏 所属分类: 程序人生


只有注册用户登录后才能发表评论。


网站导航: