小石头
Excellence in any department can be attained only by the labor of a lifetime; it is not to be purchased at a lesser price.
posts - 91,comments - 22,trackbacks - 0
JIRA + MySQL + Confluence 安装 (2007-08-29 10:49)
所属分类:第二个分类
文章标签:无标签

1.本次安装所用的软件版本为:jira-3.9.3 Enterprise ,mysql-4.1 ,confluence-2.5.4 Enterprise ,tomcat-5.5.20,关于jira和confluence的破解请自行寻找。

2.配置安装环境。
1.1 安装JDK,以JDK1.5版为例(其余版本未经测试),默认安装目录应该为C:\Program Files\Java\jre1.5.0_12,修改系统环境变量,设置JAVA_HOME指向JDK安装目录。
1.2 安装mysql,这里使用的是4.1版,为什么没有使用高版本的mysql,因为我在Atlassian官方网站上研究confluence的安装时看到confluence对高版本的mysql支持不好,推荐使用4.1版,mysql的安装没什么好说的,一路next,但是有一点需要注意,在设置默认字符集的时候一定要选择utf8,否则会导致confluence乱码。安装完成后创建数据库,由于我们要实现jira和confluence的用户共享,所以它们是共用一个数据库,首先建一个名叫atlassiandb的库,然后建一个数据库用户例如:atlassianuser。然后赋予atlassianuser用户对库atlassiandb所有的操作权限。我对mysql命令行的操作不太熟悉,所以只好用mysql-gui-tools来实现上面的操作。
1.3 安装tomcat,也是一路next,在选择JVM虚拟机路径的时候将1.1中安装JDK的路径填进去。安装完成后,打开http://127.0.0.1:8080/manager/html,如果能出现管理页面说明tomcat安装成功。下载mysql jdbc驱动,把下载下来的jar文件放到tomcat根目录下的common/lib/ 目录下。网上很多人说只能用3.1.12版本的,但是我搜了一圈都没有找到这个版本的jdbc驱动,所以只好用高版本的代替,一试竟然也行,看来还是自己动手比较靠谱。

3.安装jira,下载jira-3.9.3 Enterprise,解压后,修改edit-webapp\WEB-INF\classes\目录下的entityengine.xml文件,找到datasource节,将field-type-name属性改成mysql,然后将schema-name="PUBLIC"删除,保存。修改etc\下的tomcat-5.5-jira.xml文件,找到Resource 节,username和password分别为atlassiandb数据库的用户名和密码。修改driverClassName节属性为com.mysql.jdbc.Driver,修改url为"jdbc:mysql://localhost/atlassiandb?autoReconnect=true&useUnicode=true&characterEncoding=UTF8"
删除minEvictableIdleTimeMillis和timeBetweenEvictionRunsMillis,保存。然后运行根目录下的build.bat批处理文件,生成war包。待生成完毕,将dist-tomcat\tomcat-5.5\下的jira.xml文件拷贝到tomcat安装根目录下的conf\Catalina\localhost\目录下。由于tomcat默认是不支持jira的运行的,需要下载补丁来支持,把解压后的jar文件拷贝到tomcat安装根目录下的common\lib\目录下,重新启动tomcat打开http://localhost:8080/jira就可以开始jira的安装了。

4.安装confluence,下载confluence-2.5.4 Enterprise,解压后,在根目录下按以下层次创建文件夹edit-webapp\WEB-INF\classes\,将confluence\WEB-INF\classes\下的confluence-init.properties文件拷贝到建好的文件夹底下,找到confluence.home,这个路径是以后confluence运行时放置索引、附件等的地方,指定一个路径就行了。我一般就放在confluence安装文件的根目录下。下载osuer.xml文件将其放到edit-webapp\WEB-INF\classes\下。运行根目录下的build.bat,生成war文件。新建一个confluence.xml文件,内容如下:

 

<"/confluence" docBase="...\dist\atlassian-confluence-2.5.4.war" debug="0" reloadable="true">
            "jdbc/JiraDS" auth="Container" type="javax.sql.DataSource"
                 username="atlassianuser"
                 password="password"
                 driverClassName="com.mysql.jdbc.Driver"
                 url="jdbc:mysql://localhost/atlassiandb?autoReconnect=true&useUnicode=true&characterEncoding=UTF8" />
             

 

docbase为生成的war文件的路径。username和password为第一步里创建的mysql用户的用户名和密码。保存后放到tomcat安装根目录下的conf\Catalina\localhost\目录下。重新启动tomcat打开http://localhost:8080/confluence就可以开始安装confluence了。

5.为了实现jira和confluence的用户共享,需要在jira中建立confluence-administrators和confluence-users两个组,把jira里相应的用户加入到这两个组中就可以了。

posted on 2008-03-03 17:22 小石头 阅读(5439) 评论(4)  编辑  收藏

FeedBack:
# re: JIRA + MySQL + Confluence 安装
2010-02-11 16:09 | Jeniffer27kW
All scholars are willing to get a good degree, but what is the way to get it? We could propose to detect for the <a href="http://www.exclusivethesis.com">thesis writing</a> service to buy the economics thesis about this topic in. I took that and got the highest grade.   回复  更多评论
  
# re: JIRA + MySQL + Confluence 安装
2010-08-17 21:40 | credit loans
Some time ago, I needed to buy a building for my business but I didn't earn enough cash and could not order anything. Thank goodness my brother adviced to get the personal loans at reliable bank. Thence, I acted that and used to be satisfied with my short term loan.   回复  更多评论
  
# re: JIRA + MySQL + Confluence 安装
2010-08-23 04:24 | buy essays online
That is no matter what is your field of study just because professional custom writing organizations propose to buy essays online of great academic writing standards.   回复  更多评论
  
# re: JIRA + MySQL + Confluence 安装
2013-03-07 13:56 | homepage
详细信息在这里的数量是美妙的因为如果你基本上已经写上这一专题的书。你的博客是美好的愿望是熟悉这种主题更多的人。很好的资料 ;请保持写作 !  回复  更多评论
  

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


网站导航: