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数据库连接;
jdbc:mysql://localhost/xwiki root xwiki com.mysql.jdbc.Driver org.hibernate.dialect.MySQL5InnoDBDialect 20
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"