zoukankan      html  css  js  c++  java
  • Xwiki平台Windows搭建(Tomcat7 + XWiki6.2 + MySQL5.5)

    背景介绍

    国内xwiki安装使用资料较少,根据自己使用xwiki经验,总结出来,供参考,同时希望感兴趣的朋友能够一起讨论,XWiki是一个强大的Java开源的Wiki引擎。

    它支持一些受欢迎的特性如:(内容管理(浏览/编辑/预览/保存),支持附件,版本控制,全文本搜索,权限管理使用Hibernate进行数据存储,RSS输出与显示外部的RSS feeds,多语言支持,提供XML/RPC的API,WYSIWYG HTML编辑器,导出为PDFGroovy脚本支持等等)

    环境准备

    mysql(已经安装,不扯蛋了)

    apache-tomcat-7.0.42-windows-x64.zip

    xwiki-enterprise-web-6.2.2.war
    xwiki-enterprise-ui-mainwiki-all-6.2.2.xar

    xwiki下载地址 http://enterprise.xwiki.org/xwiki/bin/view/Main/Download

    使用Tomcat服务器和mysql数据库

    把xwiki-enterprise-web-6.2.2.war 放到 $TOMCAT_HOME/webapps 下 启动tomcat,待war包全部解压完成后关闭tomcat,并删除war包;


    1:修改xwiki.cfg,开启superadmin;

    1. #-# Enable to allow superadmin. It is disabled by default as this could be a  
    2. #-# security breach if it were set and you forgot about it. Should only be enabled  
    3. #-# for recovering the Wiki when the rights are completely messed.  
    4.  xwiki.superadminpassword=system  

    2:修改hibernate.hbm.xml,启动mysql数据库连接;

    1. <!-- Configuration for the default database.  
    2.          Comment out this section and uncomment other sections below if you want to use another database.  
    3.          Note that the database tables will be created automatically if they don't already exist.  
    4.       
    5.     <property name="connection.url">jdbc:hsqldb:file:${environment.permanentDirectory}/database/xwiki_db;shutdown=true</property>  
    6.     <property name="connection.username">sa</property>  
    7.     <property name="connection.password"></property>  
    8.     <property name="connection.driver_class">org.hsqldb.jdbcDriver</property>  
    9.     <property name="dialect">org.hibernate.dialect.HSQLDialect</property>  
    10.   
    11.     <mapping resource="xwiki.hbm.xml"/>  
    12.     <mapping resource="feeds.hbm.xml"/>  
    13.     <mapping resource="activitystream.hbm.xml"/>  
    14.     <mapping resource="instance.hbm.xml"/>  
    15.     -->  
    16.     <!-- MySQL configuration.  
    17.          Uncomment if you want to use MySQL and comment out other database configurations.  
    18.     -->  
    19.     <property name="connection.url">jdbc:mysql://localhost/xwiki</property>  
    20.     <property name="connection.username">xwiki</property>  
    21.     <property name="connection.password">xwiki</property>  
    22.     <property name="connection.driver_class">com.mysql.jdbc.Driver</property>  
    23.     <property name="dialect">org.hibernate.dialect.MySQL5InnoDBDialect</property>  
    24.     <property name="dbcp.ps.maxActive">20</property>  
    25.     <mapping resource="xwiki.hbm.xml"/>  
    26.     <mapping resource="feeds.hbm.xml"/>  
    27.     <mapping resource="activitystream.hbm.xml"/>  
    28.     <mapping resource="instance.hbm.xml"/>  

    安装过程中出现的问题

    1:中文乱码的解决($TOMCAT_HOME/conf/server.xml该文件下Connector节中增加URIEncoding="UTF8")

    1. <Connector port="8080" protocol="HTTP/1.1"  
    2.            connectionTimeout="20000"  
    3.            redirectPort="8443" URIEncoding="UTF-8" />  
    4.   
    5. <!-- Define an AJP 1.3 Connector on port 8009 -->  
    6. <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" URIEncoding="UTF-8" />  
  • 相关阅读:
    react跳转url,跳转外链,新页面打开页面
    如何把大段文字转为带html标签的文字
    react给一个div行内加背景图片并实现cover覆盖模式居中显示
    react获取当前页面的url参数
    mongodb查询数据库中某个字段中的值包含某个字符串的方法
    react实现多行文本超出加省略号
    小程序首页获取数据给数组赋值,实现加载更多,以及遇到的坑
    小程序渲染html的两种方法
    小程序url传参如何写变量
    小程序在父组件执行子组件方法,可适用于下拉刷新上拉加载之后执行子组件方法
  • 原文地址:https://www.cnblogs.com/jpfss/p/8074001.html
Copyright © 2011-2022 走看看