博客园  :: 首页  :: 联系 :: 订阅 订阅  :: 管理

在CentOS5上,以WAR包形式安装XWIKI

Posted on 2013-03-22 18:09  Bruce Zhang  阅读(598)  评论(0编辑  收藏  举报

1. 安装

参考:

http://platform.xwiki.org/xwiki/bin/view/AdminGuide/WebHome

http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation

http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationWAR

1.1 下载

$ wget http://download.forge.objectweb.org/xwiki/xwiki-enterprise-web-5.0-milestone-1.war
$ wget http://mirrors.cnnic.cn/apache/tomcat/tomcat-7/v7.0.37/bin/apache-tomcat-7.0.37.zip

 

1.2 安装

##### 安装Tomcat #####
$ unzip apache-tomcat-7.0.37.zip $ mv apache-tomcat-7.0.37 /usr/local $ cd /usr/local
$ ln -s
apache-tomcat-7.0.37 apache-tomcat

##### 安装XWiki #####
$ mv xwiki-enterprise-web-5.0-milestone-1.war xwiki.war
$ mv xwiki.war /usr/local/apache-tomcat/webapps/
$ cd /usr/local/apache-tomcat/webapps/
$ mkdir xwiki && cd xwiki
$ jar -xvf ../xwiki.war && rm -rf ../xwiki.war

##### 修改tomcat编码方式,激活gzip压缩 #####
$ vi /usr/local/apache-tomcat/conf/server.xml 添加URIEncoding="UTF-8"
<Connector port="8080" protocol="HTTP/1.1"
URIEncoding="UTF-8"

compression="on"
compressionMinSize="2048"
compressableMimeType="text/html,text/xml,text/css,text/javascript,application/x-javascript"
connectionTimeout="20000"
redirectPort="8443" />

##### 激活headless模式 #####
$ touch /usr/local/apache-tomcat/bin/setenv.sh
$ vi /usr/local/apache-tomcat/bin/setenv.sh 添加如下内容:
#!/bin/sh
export JAVA_OPTS="${JAVA_OPTS} -Djava.awt.headless=true"