环境要求:
jdk1.8
安装步骤:
xwiki的war包下载地址:https://www.xwiki.org/xwiki/bin/view/Download/DownloadVersion/?projectVersion=10.11.2
第一步:在tomcat的webapps文件下创建xwiki文件夹,将war包上传至xwiki文件夹下。(tomcat编码需设置为 utf-8,防止中文乱码)
第二步:使用命令unzip ***.war解压war包。
第三步:修改 xwiki WEB-INF文件夹下的hibernat.cfg.xml文件中的数据库和链接地址信息。
第四步:下载mysql-connector-java-5.1.34.jar相关jar包。上传至WEB-INF/lib文件下。
第五步:修改xwiki.cfg文件:
xwiki.readonly=no
xwiki.encoding=UTF-8
xwiki.store.main.hint=hibernate
xwiki.store.hibernate.path=/WEB-INF/hibernate.cfg.xml
xwiki.superadminpassword=system
第六步配置office server
yum install libreoffice libreoffice-headless
第七步:设置web.xml编码配置:encoding="UTF-8"
<filter>
<filter-name>Set Character Encoding</filter-name>
<filter-class>org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter</filter-class>
<!-- The encoding to use. This must be the same as the one in xwiki.cfg (hopefully only one
encoding will be used later). -->
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
第八步:初始化xwiki 界面。修改为中文配置
点击头像右边菜单列表 Adminisert xwiki,做如下修改。