生活随笔
收集整理的這篇文章主要介紹了
xwiki平台搭建
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
為什么80%的碼農都做不了架構師?>>> ??
背景介紹
xwiki是一款企業團隊協作和知識管理的開源軟件,該軟件的功能比較強大,使用起來比較便捷。官方網址為http://www.xwiki.org/xwiki/bin/view/Main/WebHome#
傻瓜包安裝方法較為簡單,直接下載standalone版本,然后修改start_xwiki.sh中的XWIKI_OPTS值,或直接運行即可,此方法致命的缺點在于性能問題。
開啟superadmin用戶的方法
修改$XWIKI_HOME/webapps/xwiki/WEB-INF/xwiki.cfg文件:
#-#?Enable?to?allow?superadmin.?It?is?disabled?by?default?as?this?could?be?a
#-#?security?breach?if?it?were?set?and?you?forgot?about?it.?Should?only?be?enabled
#-#?for?recovering?the?Wiki?when?the?rights?are?completely?messed.xwiki.superadminpassword=system
使用獨立的Mysql數據庫服務器
通過修改數據庫配置文件$XWIKI_HOME/webapps/xwiki/WEB-INF/hibernate.cfg.xml文件;
注釋原有的數據庫連接方式,開啟mysql數據庫連接;
???<!--?Configuration?for?the?default?database.Comment?out?this?section?and?uncomment?other?sections?below?if?you?want?to?use?another?database.Note?that?the?database?tables?will?be?created?automatically?if?they?don't?already?exist.<property?name="connection.url">jdbc:hsqldb:file:${environment.permanentDirectory}/database/xwiki_db;shutdown=true</property><property?name="connection.username">sa</property><property?name="connection.password"></property><property?name="connection.driver_class">org.hsqldb.jdbcDriver</property><property?name="dialect">org.hibernate.dialect.HSQLDialect</property><mapping?resource="xwiki.hbm.xml"/><mapping?resource="feeds.hbm.xml"/><mapping?resource="activitystream.hbm.xml"/><mapping?resource="instance.hbm.xml"/>--><!--?MySQL?configuration.Uncomment?if?you?want?to?use?MySQL?and?comment?out?other?database?configurations.--><property?name="connection.url">jdbc:mysql://localhost/xwiki</property><property?name="connection.username">root</property><property?name="connection.password">xwiki</property><property?name="connection.driver_class">com.mysql.jdbc.Driver</property><property?name="dialect">org.hibernate.dialect.MySQL5InnoDBDialect</property><property?name="dbcp.ps.maxActive">20</property><mapping?resource="xwiki.hbm.xml"/><mapping?resource="feeds.hbm.xml"/><mapping?resource="activitystream.hbm.xml"/><mapping?resource="instance.hbm.xml”/>
mysql數據庫配置
需要在mysql中建立數據庫xwiki,且授予相關的權限:
create?database?xwiki?default?character?set?utf8;
grant?all?privileges?on?xwiki.*?to?xwiki@localhost??identified?by?‘xwiki’;
使用獨立的tomcat和獨立的mysql數據庫服務器
下載xwiki對應的war包;
啟動tomcat;
待war包全部解壓完成后關閉tomcat并刪除war包;
修改xwiki.cfg,開啟superadmin;
修改hibernate.hbm.xml,啟動mysql數據庫連接;
啟動tomcat,并訪問localhost:8080/xwiki;
按照安裝向導一步步的完成安裝;
拷貝xwiki文件夾的內容到ROOT文件夾下,并再次重啟tomcat;
中文亂碼的解決
$TOMCAT_HOME/conf/server.xml該文件下Connector節中增加URIEncoding=“UTF8"
??<Connector?port="8080"?protocol="HTTP/1.1"connectionTimeout="20000"redirectPort="8443"?URIEncoding="UTF8”/>
下一步計劃
平臺搭建比較簡單,關鍵的問題在于如何利用好該平臺,提升團隊競爭力和工作效率是一個值得思考的問題。
References
【1】xwiki中文解決方案http://liaoyixun.iteye.com/blog/157174
【2】修改mysql密碼的幾種方案http://www.xiaojb.com/archives/it/mysqlroot.shtml
【3】windows下基于tomcat和mysql的xwiki解決方案http://wenku.baidu.com/link?url=-AUR42L_7B4ywrmUF7mZo6J16b-0jbQ6qyZPBKzn4hbYfJfTVf2jXOjS2Zl07DSe-bcEQZLPV02v5-A5QeLWYm71SkewNXMNH8UWPK5cUOi;
【4】xwiki示例系統http://183.129.173.169:808/xwiki/bin/view/Main/WebHome;
【5】SkinExtentionsTutorial?http://platform.xwiki.org/xwiki/bin/view/DevGuide/SkinExtensionsTutorial;
【6】Documents Macro?http://extensions.xwiki.org/xwiki/bin/view/Extension/Documents+Macro;
轉載于:https://my.oschina.net/gschen/blog/206626
總結
以上是生活随笔為你收集整理的xwiki平台搭建的全部內容,希望文章能夠幫你解決所遇到的問題。
如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。