准备Windows下安装XWiki,看了一下有三种安装方式:
XWiki is a Java-based wiki and runs on a Servlet Container such as Tomcat, Jetty, JBoss, WebLogic, WebSphere, etc. It also uses a relational database to store its content. It can run on almost any database (HSQL, MySQL, etc) but XWiki and the database need to be setup correctly.
There are 3 ways of installing XWiki:
- Use the Standalone distribution which already packages a Servlet Container (Jetty) and a database (HSQL). This is the recommended option for first time XWiki users and for users who wish to quickly try out XWiki.
- Use the WAR distribution and configure both your container and your database to work with it.
- Use the .deb package to install the last version of XWiki and the dependencies.
目标机需要满足以下条件:
- Java 6 or greater installed.
- A Servlet Container supporting Servlet 2.4.
- Enough memory, check the Memory section of the Performance Guide.
- Check the release notes for the version you're installing to see what browsers and databases are supported for it. You can also check our general support strategy.
(一)第一种方式:
我采用的第一种安装方式是独立运行的版本安装,包括exe安装,jar安装,或者zip解压的方式,可直接运行,方便想要快速用起来xwiki的人,比如下面是exe方式安装步骤:
采用最简单的windows的exe版本安装:
1、 安装jdk7;(下载地址: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html)
2 、安装xwiki-enterprise-installer-windows-5.2.2.exe(下载地址:http://enterprise.xwiki.org/xwiki/bin/view/Main/Download)
3、启动start_xwiki.bat;
4、在浏览器中打开http://localhost:8080/;
5、Admin/admin登录
6、打开管理wiki界面,点击Localization,在默认语言栏中奖en改为zh,保存即切换为中文了。
问题:
但是我在win8系统上按照这个步骤一点问题都没有,XWiki还运行非常良好!!!
但是当我在win7和win Server2008上面安装exe版本的时候,到最后一步,点击next出现空白wizard,就再也不前进了,然后启动不了xwiki,安装解压版的(zip)也是,解压了之后,点击start.bat也是启动不了,出现一个异常然后控制台界面消失,都看不到是什么异常。。。 网上有人出现这个问题,xwiki作者回答的是新版本不会有这个问题,但是我装的是最新的版本啊,不知道为什么!!! 是否是我的win7和server08上面有上面东西和它冲突了我也不知道。
(二)第二种方式:
我才用的第二种方式是 war文件 + tomcat + MySQL,安装到windows server 2008上,当然Web容器和数据库也可以换成其它的,下面是详细步骤:
(1)下载准备:
我用的是XWiki 5.2.2稳定版
Xwiki war文件:http://main.xwiki.org/xwiki/bin/view/DownloadCode/DownloadFeedback?downloadLink=http://download.forge.ow2.org/xwiki/xwiki-enterprise-web-5.2.2.war&projectType=Older%20Stable&projectVersion=5.2.2&projectID=1
Xwiki模版xar文件: http://main.xwiki.org/xwiki/bin/view/DownloadCode/DownloadFeedback?downloadLink=http://download.forge.ow2.org/xwiki/xwiki-enterprise-ui-mainwiki-all-5.2.2.xar&projectType=Older%20Stable&projectVersion=5.2.2&projectID=1
JDK:jdk7
Tomcat:tomcat7
MySQL JDBC驱动 下载:
------------------------------------------分割线------------------------------------------
免费下载地址在 http://linux.linuxidc.com/
用户名与密码都是www.linuxidc.com
具体下载目录在 /2014年资料/10月/18日/Windows下安装Java开源知识库XWiki
下载方法见 http://www.linuxidc.com/Linux/2013-07/87684.htm
------------------------------------------分割线------------------------------------------
Linux+Tomcat+XWiki+MySQL安装配置 见 http://www.linuxidc.com/Linux/2013-11/93033.htm
XWiki 安装教程及更改语言配置 http://www.linuxidc.com/Linux/2014-10/108173.htm
(2)详细步骤:
1 安装JDK和Tomcat
设置JAVA_HOME,CATALINA_HOME,Path三个环境变量,前两者分别是JAVA安装主目录和Tomcat安装主目录。
修改tomcat端口号和设置URIEncoding="UTF-8"

更多详情见请继续阅读下一页的精彩内容: http://www.linuxidc.com/Linux/2014-10/108176p2.htm
