若是在你的 Tomcat 中配置了數據源,而且Confluence 設置指南在安裝的時候檢測到這個配置的時候,配置數據源的選項將會提供給你進行配置。入股你但願使用數據源,請參考下面的配置。html
在 Confluence 的配置指南中,你將會提示選擇你的數據庫,在這個時候,你應該:java
bin/stop-confluence.sh
or bin/stop-confuence.bat
中止 Confluence。<installation-directory>/conf/server.xml
<installation-directory>/confluence/WEB-INF/web.xml
<home-directory>/confluence.cfg.xml
拷貝你的數據庫驅動到 <installation-directory>/lib
目錄中。mysql
下面的鏈接是有關若是找到你的數據庫驅動:web
<installation-directory>/confluence/WEB-INF/lib/postgresql-x.x.x.jar
<installation-directory>/confluence/WEB-INF/lib/mssql-jdbc-x.x.x.x.jar
下一步,將數據源配置到 Tomcat 中。sql
<installation-directory>/conf/server.xml
<
Context
path
=
""
docBase
=
"../confluence"
debug
=
"0"
reloadable
=
"true"
>
<!-- Logger is deprecated in Tomcat 5.5. Logging configuration for Confluence is
specified in confluence/WEB-INF/classes/log4j.properties -->
|
Resource
元素。針對你具體使用的數據庫不一樣,須要作一些修改(插入 Context
元素,在 <Context.../>
行,同時在 Manager
以前)。替換 <database-user>
, <password>
, <host>
或 <database-name>
(或針對 Oracle 使用 <SID>
)來配置你本身的數據庫。你同事還須要修改這個端口,若是你的數據庫沒有在默認端口中運行的話。tomcat
driverClassName
,協做寫編輯將會失敗。請參考 Database JDBC Drivers 頁面中的內容。配置 Confluence 來使用這個數據源:服務器
編輯 <CONFLUENCE_INSTALLATION>/confluence/WEB-INF/web.xml
.</web-app>
元素以前插入下面的內容:
<
resource-ref
>
<
description
>Connection Pool</
description
>
<
res-ref-name
>jdbc/confluence</
res-ref-name
>
<
res-type
>javax.sql.DataSource</
res-type
>
<
res-auth
>Container</
res-auth
>
</
resource-ref
>
|
如今你的數據源已經成功配置了,你能夠繼續你 Confluence 的安裝進程了。oracle
bin/start-confluence.sh
或 bin/start-confuence.bat
來重啓你的 Confluencehttp://localhost:8090
to return to the setup wizard.java:comp/env/jdbc/confluence
https://www.cwiki.us/display/CONFLUENCEWIKI/Configuring+a+datasource+connection