zoukankan      html  css  js  c++  java
  • 在CentOS5上,以WAR包形式安装XWIKI

    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"

     
  • 相关阅读:
    20210524
    20210521
    20210520
    20210519
    20210518
    20210517
    字符设备驱动三
    字符设备驱动二
    字符设备驱动一
    git基本操作
  • 原文地址:https://www.cnblogs.com/zhangqingsh/p/2976115.html
Copyright © 2011-2022 走看看