Du ser en gammel version af denne side. Se den nuværende version.

Sammenlign med nuværende Vis sidehistorik

« Forrige Version 5 Næste »

Requirements

OS Settings

Preferred OS: Linux 64 Bit - 2 CPU's and at lease 3 GB Ram

File Limits Raise

/etc/security/limits.conf
* soft nofile 100000
* hard nofile 100000

root soft nofile 100000
root hard nofile 100000

 

Mysql Settings

Preferred Database: Mysql (or Postgres)

Settings for MySQL

my.cnf
[mysqld]
transaction-isolation = READ-COMMITTED
log-bin=mysql-bin
binlog_format=row
default-table-type=innodb
default-storage-engine=innodb
max_allowed_packet=32M

[mysql]
default-character-set=utf8

 

Mail

SMTP Access for sending mail

IMAP Access for picking up mail

 

Installation

Prepare Database

Create the Database

mysql> create database confluence CHARACTER SET utf8 COLLATE utf8_bin;
mysql> grant all privileges on confluence.* to confluence@localhost identified by '*******';
Query OK, 0 rows affected (0.00 sec)

 

Install binaries

Download Confluence from http://www.atlassian.com/software/confluence/download

sh ./atlassian-confluence-5.1.1-x64.bin

Follow the required steps (remember Confluence_Home and Confluence_Data) and connect to the tomcat instance started

 

Postinstall

This is where the tweaking comes into place, to avoid common problems:

confluence.cfg.xml

This file is found in Confluence_Data

Change the number of Database connections to higher than standard

<property name="hibernate.c3p0.max_size">50</property>

Make sure that the ?autoReconnect=true is on the jdbc connection

<property name="hibernate.connection.url">jdbc:mysql://localhost/confluence?autoReconnect=true&amp;sessionVariables=storage_engine%3DInnoDB</property>

setenv.sh

This file is found in the Confluence_Home/bin

Add support for UTF-8 File system by adding -Dfile.encoding=UTF-8 to the JAVA_OPTS:

JAVA_OPTS="-Xms1024m -Xmx1024m -XX:MaxPermSize=512m $JAVA_OPTS -Djava.awt.headless=true -XX:NewSize=512m -Dfile.encoding=UTF-8"
export JAVA_OPTS

Tweaking of memory and usage comes in play here, I prefer this for a 4 GB Server:

JAVA_OPTS="-Xms2048m -Xmx2048m -XX:MaxPermSize=512m -Djava.awt.headless=true -XX:NewSize=700m -XX:+UseParallelGC -Dsun.rmi.dgc.client.gcInterval=900000 -Dsun.rmi.dgc.server.gcInterval=900000 -XX:+DisableExplicitGC -Dfile.encoding=UTF-8"
export JAVA_OPTS

For saving Garbage Collection in /pack/confluence/logs/gc.log

JAVA_OPTS="-Xms2048m -Xmx2048m -XX:MaxPermSize=512m -Djava.awt.headless=true -verbose:gc -Xloggc:/pack/confluence/logs/gc.log -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -XX:NewSize=700m -XX:+UseParallelGC -Dsun.rmi.dgc.client.gcInterval=900000 -Dsun.rmi.dgc.server.gcInterval=900000 -XX:+DisableExplicitGC -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/backup/hdump -Dfile.encoding=UTF-8"
export JAVA_OPTS

server.xml

This file is found in Confluence_Home/conf

Binding to a fixed IP Address, add the address= to the connector. Also the port= can be changed (Under Linux only root can bond to 0-1023):

<Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="8080" address="10.0.0.10" minProcessors="5"
                   maxProcessors="75"
                   enableLookups="false" redirectPort="8443" acceptCount="10" debug="0" connectionTimeout="20000"
                   useURIValidationHack="false" />

To secure correct UTF-8 Handling, add URIEncoding="UTF-8" to the connector:

<Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="8080" address="10.0.0.10" minProcessors="5"
                   maxProcessors="75"
                   enableLookups="false" redirectPort="8443" acceptCount="10" debug="0" connectionTimeout="20000"
                   useURIValidationHack="false" URIEncoding="UTF-8" />

If behind a traffic Manager or Apache Proxy, add scheme=, proxyName= and proxyPort to the context:

<Context path="" docBase="../confluence" debug="0" reloadable="false" useHttpOnly="true" scheme="https" proxyName="jira.example.com" proxyPort="443">

If the Tomcat needs to travel through symbolic links on the filesystem, add the allowLinking="true" to the context:

<Context path="" docBase="../confluence" debug="0" reloadable="false" useHttpOnly="true" allowLinking="true">

If the Confluence instance need to run below root /, change the path= parameter:

<Context path="/confluence" docBase="../confluence" debug="0" reloadable="false" useHttpOnly="true" allowLinking="true">
  • Ingen etiketter