Chinaunix首页 | 论坛 | 博客
  • 博客访问: 811880
  • 博文数量: 188
  • 博客积分: 4433
  • 博客等级: 上校
  • 技术积分: 1905
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-14 07:14
个人简介

linux

文章分类

全部博文(188)

文章存档

2016年(6)

2015年(22)

2014年(18)

2013年(5)

2012年(125)

2011年(10)

2010年(2)

分类: 信息化

2014-07-18 13:38:26

介绍

Xwiki是一个OpenSource的wiki工具,本文档介绍了xwiki的安装以及管理技巧。

安装

APT配置

配置apt源
wget -q "" -O- | sudo apt-key add - sudo wget "" -P /etc/apt/sources.list.d/
安装Xwiki,包括tomcat以及mysql
apt-get update apt-get install xwiki-enterprise-tomcat7-mysql

配置tomcat内存

修改/etc/default/tomcat7

JAVA_OPTS="-Djava.awt.headless=true -Xmx512m -XX:MaxPermSize=192m"

启动Xwiki

/etc/init.d/tomcat7 start /etc/init.d/tomcat7 stop /etc/init.d/tomcat7 restart

集成ldap认证

配置/usr/lib/xwiki/WEB-INF/xwiki.cfg如下

xwiki.authentication.ldap=1 #-# LDAP Server (Active Directory, eDirectory, OpenLDAP, etc.) xwiki.authentication.ldap.server=xxxxx
xwiki.authentication.ldap.port=389
#-# LDAP login, empty = anonymous access, otherwise specify full dn
#-# {0} is replaced with the user name, {1} with the password
#xwiki.authentication.ldap.bind_DN=cn={0},department=People,department=example,department=com,o=MP xwiki.authentication.ldap.bind_DN=uid={0},ou=People,dc=example,dc=com
xwiki.authentication.ldap.bind_pass={1} #-# The Base DN used in LDAP searches
xwiki.authentication.ldap.base_DN=dc=example,dc=com

集成openoffice服务

从官网下载安装包和中文支持包

Apache_OpenOffice_4.0.0_Linux_x86-64_install-deb_zh-CN.tar.gz
Apache_OpenOffice_4.0.0_Linux_x86-64_langpack-deb_zh-CN.tar.gz

解压后安装所有的deb包
dpkg -i *.deb

安装包
apt-get install libxt6 libxrender1

配置xwiki配置文件
#vim /usr/lib/xwiki/WEB-INF/xwiki.properties

openoffice.serverType=0

openoffice.serverPort=8100

openoffice.autoStart=true

openoffice.homePath=/opt/openoffice4/

openoffice.profilePath=/opt/openoffice4/4

openoffice启动脚本
# cat /opt/openoffice4/4
/opt/openoffice4/program/soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard

重启服务

/etc/init.d/tomcat7 restart

阅读(4244) | 评论(0) | 转发(0) |
0

上一篇:syslog协议

下一篇:LXC学习资料

给主人留下些什么吧!~~