username="jira"
password="arij"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:
mysql:
//localhost/jiradb?
autoReconnect=true&useUnicode=true&characterEncoding=UTF-8"/>"
/>
●修改entityengine.xml文件
$JIRA/atlassian-jira/WEB-INF/classes/entityengine.xml,改变field-type-name属性为mysql
删除掉这个属性schema-name="PUBLIC"
修改完配置文件就可以启动了jira了
运行$JIRA/bin/startup.sh
关闭jira
运行$/JIRA/bin/shutdown.sh
3、confluence的安装
3.1解压
这里我们使用的安装包是:
confluence-2.10.2-std.tar.gz将它解压到/usr/local/目录
tar–zxvfconfluence-2.10.2-std.tar.gz–C/usr/local/
3.2修改配置文件
a.修改server.xml
这里主要是修改端口号,confluence默认端口号也是8080所以要将端口号修改为其它,这里我们将它修改为8090(server.xml的目录$CONFLUENCE/conf)
b.修改confluence-init.properties
这里主要是添加一个存放配置数据的目录,在$CONFLENCE中建立config-data
mkdir$CONFLUENCE/config-data
将confluence-init.properties文件中的参数赋值如下:
confluence.home=/usr/local/confluence/config-data
c.confluence破解
下载破解器:
AtlassianConfluence2.10.3破解
1、在confluence\WEB-INF\classes\com\atlassian\confluence\下建立page文件夹;
2、将keygen.class、Page.key两个文件存放在
confluence\WEB-INF\classes\com\atlassian\confluence\page\
3、命令:
javakeygen;后输入confluence名字
3.3启动confluence
./$CONFLUENCE/bin/startup.sh
关闭confluence
./$CONFLUENCE/shutdown.sh
3.4配置confluence+mysql
a.将mysql驱动程序放到相应目录
将mysql数据库于java连接的驱动mysql-connector-java-5.0.8-bin.jar拷贝到$CONFLUENCE/lib目录
cpmysql-connector-java-5.0.8-bin.jar$CONFLUENCE/lib
c.建立confluence的数据库
createdatabaseconfluencedbcharactersetUTF-8;
grantallonconfluencedb.*toconfluence@”%”identifiedby“ecneulfnoc”
d.配置与mysql的连接
启动之后输入licensekey;就可以配置confluence使用的数据库了,启动之后访问http:
//192.168.10.51:
8090
选择Custominstallation选择Mysql点击ExternalDatabase选择DirectJDBCConnection进入下面页面填写一下内容:
DriverClassName:
com.musql.jdbc.Driver
DatabaseURL:
jdbc:
mysql:
//localhost/confluencedb?
autoReconnect=true&useUnicode=true&characterEncoding=UTF-8
UserName:
confluence
Password:
ecneulfnoc
confluence连接mysql的就配置完了;点击next进入下一个界面,继续配置;
参考:
4、confluence+jira+crowd集成(包括Openldap认证)
4.1crowd的配置
a.使用crowd管理员用户登录
b.新建Directories
c.选择Connector
填写name,Description可以不写,active一定要勾选;点击continue进入Connector在Connector下拉列表框中选择openldap
填写url为:
http:
//l192.168.10.2:
389
十分关键的一步就是填写BaseDN,UserDN,Password这些都是在openldap的server配置文件当中的slapd.conf中可以找到
suffix"dc=winksi,dc=com"(BaseDN)
rootdn"cn=admin,dc=winksi,dc=com"(UserDN)
rootpwflzx3000chi(Password)
d.crowd中建立用户组和用户
分别建立confluence-users,confluence-administrators,jira-users,jira-developers,
jira-administrators分别往这几个组中添加用户:
向confluence-administrators和confluence-users添加confluenceadmin
向jira-users,jira-administrators,jira-developers添加jiraadmin
将用户分组时必须点击update否则新建的用户可以再jira或者confluence中看到但是无法登陆到jira或者confluence
e.添加application
分别建立winks-ol-jira,winks-ol-confluence两个application
●winks-ol-jira的url设置http:
//192.168.10.51:
8080,directories选择前面建立的winks-openldap在Authorisation中选择Allowalluserstoauthenticate(此设置为crowd+jira配置)
●winks-ol-confluence的url设置http:
//192.168.10.51:
8090,directories选择前面建立的winks-openldap在Authorisation中选择Allowalluserstoauthenticate(此设置为crowd+confluence配置)
4.2配置jira与crowd通信
a.拷贝配置文件
CopyFrom
CopyTo
CROWD/client/crowd-integration-client-X.X.X.jar
$JIRA/atlassian-jira/WEB-INF/lib
CROWD/client/conf/crowd.properties
$JIRA/atlassian-jira/WEB-INF/classes
CROWD/client/conf/crowd-ehcache.xml
$JIRA/atlassian-jira/WEB-INF/classes/crowd-ehcache.xml
然后编辑$JIRA/atlassian-jira/WEB-INF/classes/crowd.properties文件:
application.name:
winks-ol-jira(在crowd中为Jira建立的applications)
application.password:
arij(在crowd中建立的applications的密码)
application.login.url:
http:
//192.168.10.115:
/crowd/console
crowd.server.url:
http:
//192.168.10.115:
/crowd/services
b.编辑$JIRA/atlassian-jira/WEB-INF/classes/osuser.xml
配置文件中都有明确的说明,启用crowd认证需要打开注释掉的某些东西,关闭某些注释掉的东西;
--ThisiswhereJIRA'scredentialscheckingcanbeconfigured.Forinstance,see
-->
--YouwillneedtouncommenttheCrowdprovidersbelowtoenableCrowdintegration-->
com.atlassian.crowd.integration.osuser.CrowdProfileProvider
com.atlassian.jira.user.ExternalEntityJiraProfileProvider
true
--CROWD:
START-TheprovidersbelowherewillneedtobecommentedoutforCrowdintegration-->
--
true
true
true
-->
--CROWD:
END-->
c.编辑propertyset.xml文件
3.13.2版的这句话已经添加到文件的后面了,此步可以省略
d.编辑seraph-config.xml文件
将seraph-config.xml文件中的以下内容注释掉
--CROWD:
START-TheauthenticatorbelowherewillneedtobecommentedoutforCrowdSSOintegration-->
--CROWD:
END-->
将下面的内容注释去掉
--CROWD:
START-IfenablingCrowdSSOintegrationuncommentthefollowingJIRAAuthenticatorandcommentouttheDefaultAuthenticatorbelow-->
---->
--CROWD:
END-->
4.3配置confluence与crowd通信
a.拷贝配置文件
CopyFrom
CopyTo
CROWD/client/crowd-integration-client-X.X.X.jar
CONFLUENCE/confluence/WEB-INF/lib
CROWD/client/conf/crowd.properties
CONFLUENCE/confluence/WEB-INF/classes
CROWD/client/conf/crowd-ehcache.xml
CONFLUENCE/confluence/WEB-INF/classes/crowd-ehcache.xml
b.编辑atlassian-user.xml配置文件
编辑confluence安装目录$CONFLUENCE/confluence/WEB-INF/classes/atlassian-user.xml
下的atlassian-user.xml文件去掉对一下内容的注释
c.编辑crowd.properties配置文件
application.namewiki-confluence(在crowd中为confluence建立的applications)
application.passwordecneulfnoc(在crowd中建立的confluence的applications的密码)
application.login.urlhttp:
//192.168.10.51:
8095/crowd/console/
crowd.server.urlhttp:
//192.168.10.51:
8095/crowd/services/
d.编辑$/CONFLUENCE/confluence/WEB-INF/classes/seraph-config.xml配置文件
注释掉一下内容:
---->
去掉注释打开一下内容:
5、jira和svn结合
Jira与subversion是需要中间控件,才能实现的所以第一步是下载控件
5.1下载subversion-jira-plugin集成控件
在下载subversion-jira-plugin以