安装mysql数据库,并创建xwiki数据库及用户
安装tomcat
更改comcat启动脚本,设置jvm参数
vi bin/catalina.sh
JAVA_OPTS="-server -Xmx2048m -Xms2048m -Xmn768m -XX:PermSize=256m -XX:MaxPermSize=512m -Xss512k"
将xwiki.war放在tomcat root目录
mysql-connector-java-5.1.5-bin.jar 放入 xwiki/WEB-INF/lib
创建数据库xwiki:
[client]
default-character-set=utf8
[mysqld]
max_allowed_packet = 100M #上传大附件
default-character-set=utf8
character-set-server = utf8
collation-server = utf8_general_ci
更改数据库连接:xwiki/WEB-INF/hibernate.cfg.xml
<property name="connection.url">jdbc:mysql://10.14.8.5:3909/xwiki</property>
<property name="connection.username">wiki</property>
<property name="connection.password">xwiki</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="dialect">org.hibernate.dialect.MySQL5InnoDBDialect</property>
<property name="dbcp.poolPreparedStatements">true</property>
<property name="dbcp.maxOpenPreparedStatements">20</property>
<mapping resource="xwiki.hbm.xml"/>
<mapping resource="feeds.hbm.xml"/>
<mapping resource="activitystream.hbm.xml"/>
<mapping resource="instance.hbm.xml"/>
<mapping resource="mailsender.hbm.xml"/>
启动tomcat:
sh bin/startup.sh
第一次访问配置过程中执行:DISTRIBUTION Wizrd
修改最大上传大小:
http://<yourwiki>/xwiki/bin/edit/XWiki/XWikiPreferences?editor=object