您的位置:首页 > 产品设计 > UI/UE

JIRA + MySQL + Confluence 安装

2006-07-09 21:50 465 查看
JIRA + MySQL + Confluence 安装
JIRA + MySQL + Confluence 安装

官方有详细文档:http://www.atlassian.com/software/jira/docs/latest/

1.1 安装前确认软硬件配置需求

(1) 软件需求:

需JAVA支持,已内嵌 HSQL 数据库引擎,如用于正式应用,建议使用 MySQL or PostgreSQL

(2) 硬件建议:

评估安装 需要 1.5GHz 主频+ 256MB 内存即可;

10-20个项目/100-200用户/1000-5000问题数,需要2.8GHz主频 + 256-512MB内存

更多更大项目/10万问题数, 1G内存足够了

作为参考 jira.atlassian.com 有14,000问题和10,000用户,最高负载没分钟30个页面需求,目前使用双2.8GHZ Xeon CPU + 450MB内存

1.2 安装JAVA JDK,设置JAVA_HOME,及添加JDK可执行目录bin到path路径

JIRA 运行需要JDK 1.3 或更高版本,可从 Sun's website 下载windows offline 版本安装:

Linux 用户要 要安装xorg-x11-deprecated-libs包 (Fedora) 获类似支持包以避免如下错误:

java.lang.UnsatisfiedLinkError: /opt/j2sdk1.4.2_11/jre/lib/i386/libawt.so: libXp.so.6: cannot open
shared object file: No such file or directory

设置JAVA_HOME系统环境变量


在控制面板,右键点击“我的电脑”图标,选择属性

点击“高级” 页

点击“环境变量”按钮

点击 “新建” 系统环境变量

设置 JAVA_HOME 指向 Java安装目录,不是 Bin目录.

cmd 或 Dos 下执行 %Java_Home%/bin/javac, 确认变量设置无误

1.3 安装JIRA,直接解压即可

http://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-enterprise-3.6.2-standalone.zip

1.4 安装MySQL数据库,创建JIRADB,同时下载 JDBC for MySQL 驱动jar文件到Jira/common/lib/目录, 注意数据库设置使用UTF-8支持中文 http:// href="http://www.mysql.com/" target=_blank>www.mysql.com

按照要求编辑conf/server.xml和atlassian-jira/WEB-INF/classes/entityengine.xml,注意数据库名和前面创建要一致:

安装MySQL:http://dev.mysql.com/downloads/

创建JIRA连接用户(如 jirauser).

创建JIRA数据库 (如 jiradb).

确认数据库JIRA连接用户有权限连接数据库、创建和使用数据表

把MySQL JDBC driver jar 文件拷到 common/lib/ 目录. [download driver]

编辑 conf/server.xml 文件, 设置用户名、密码、驱动类名、数据源 url参数:

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


在n conf/server.xml文件里删除 minEvictableIdleTimeMillistimeBetweenEvictionRunsMillis 属性, 该属性仅为 HSQL所需.

编辑 atlassian-jira/WEB-INF/classes/entityengine.xml, 改变 field-type-name 属性为mysql:

<!-- 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"
...
参见http://www.atlassian.com/software/jira/docs/latest/standalone-dbconfig.html


1.5 双击jira/bin/Startup.bat 启动JIRA, 打开http://localhost:8080

并进行配置,选择中文,设置相关索引、附件、备份路径及邮件服务器地址、管理员帐号,完成配置即可登陆JIRA

授权码:
RRmrrmTLMacJjnILaQIQwRIunNmEnFiorFnrslwRacIqAjl
mj2KOOqEA31GrRVfeg3Rrx862L0LTOgSjJkjwglIozeMw11
NqnvwOonMQqQOQpqORvvnrOmNRnoppprQVXSswnOOostUUn
nrmoqurumnqmUUnnrmoqurumnqmUUdwgpos

注意:授权码是分行,不要拼接起来(害惨我了)

参见http://www.atlassian.com/software/jira/docs/latest/setup.html

1.6 安装Confluence

关闭JIRA,下载Confluence WAR文件,安装在JIRA目录下,注意confluence.xml中"/confluence"不能改为其它名字,安装前在mysql 创建好confluence数据库.

1. 下载Confluence WAR 文件 Confluence WAR file , 解压到JIRA目录下Confluence目录, 主意不要解压到 Tomcat webapps 目录.

2. 设置 confluence-init.properties 文件

打开 confluence/WEB-INF/classes/confluence-init.properties , 设置confluence.home 到Confluence目录

3. 编辑 tomcat context descriptors

(1) 在JIRA conf/Catalina/localhost 目录创建confluence.xml 文件 (如果tomcat 有hostname主机名, 则localhost请改为hostname)

(2) 打开 confluence.xml 增加下述几行:

<Context path="/confluence" docBase="c:/applications/confluence-2.1.3/confluence" debug="0" reloadable="true">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="atlassian-confluence." suffix=".log" timestamp="true"/>
</Context>
<Context path="/confluence" docBase="c:/applications/confluence-2.1.3/confluence" debug="0" reloadable="true"> <Logger className="org.apache.catalina.logger.FileLogger" prefix="atlassian-confluence." suffix=".log" timestamp="true"/> </Context>

其中docBase为Confluence解压路径下的confluence

4. 双击startup.bat 重起Jira

访问Confluence为在原Jira访问路径加confluence即可,如

JIRA url为 http://jira.example.org:8080/

, 则Confluence url 相应地为 http://jira.example.org:8080/confluence

参考http://confluence.atlassian.com/display/DOC/How+to+add+Confluence+to+a+JIRA+standalone+install

1.7 重启JIRA,http://localhost:8080

可打开JIRA,http://localhost:8080/confluence

可打开Confluence,并进行配置,注意数据库连接用UTF8.

破解见http://crackdb.org/index_1_a_16.html, 需把page.key拷到 confluence_install_dir/confluence/WEB-INF/classes/com/atlassian/confluence/page/

再输入授权码:(注意分行,不要拼接一行)

NPoPmtdEuqpLvrXGCcoCjIhnMPXOgPnnIClMXrwxVrNWxC
mi2Ky0xzbg<oRNIW<4b<pLAd2K25cf0ayP9>vgkZDB8s>4
ROxMrPPqoRPOPqNRTmnRrnqnPnqqRRuUtSSUxVTPqPnOqN
urUnnrnornmmrpvmUnnrnornmmrpvmUEbtiXkaUvssssss

1.8 JIRA与Apache集成见:http://www.atlassian.com/software/jira/docs/latest/apacheintegration.html



注意1、Apache httpd.conf 中proxy相关的4个模块都要打开

2、代理路径需和JIRA中路径一致,使用/jira,/confluence

1.9 JIRA和Confluence更多整合见:http://confluence.atlassian.com/label/DOC/confluence-jira



更多文档见: http://confluence.atlassian.com/dashboard.action

, http://confluence.atlassian.com/display/JIRA/Home



Jira和Confluence注册见 http://www.unfish.net/archives/73-A.html

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: