Versioner sammenlignet

Nøgle

  • Linjen blev tilføjet.
  • Denne linje blev fjernet.
  • Formatering blev ændret.

...

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

File Limits Raise for "Open Files", this is for Ubuntu

Kodeblok
title/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)

...

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

Confluence running as Confluence user

Make sure Confluence is not running as root (for security reasons); look at Confluence_Home/bin/user.sh for a username:

Kodeblok
# START INSTALLER MAGIC ! DO NOT EDIT !
CONF_USER="confluence" ##
# END INSTALLER MAGIC ! DO NOT EDIT !
export CONF_USER ##

 

And check the startup script /etc/init.d/confluence look like this (with the right path):

Kodeblok
#!/bin/bash
# Confluence Linux service controller script
cd "/pack/confluence/bin"
case "$1" in
    start)
        ./start-confluence.sh
        ;;
    stop)
        ./stop-confluence.sh
        ;;
    restart)
        ./stop-confluence.sh
        ./start-confluence.sh
        ;;
    *)
        echo "Usage: $0 {start|stop|restart}"
        exit 1
        ;;
esac

Finally, make sure the confluence user has access:

Kodeblok
cd Confluence_Home
sudo chown -R confluence:confluence confluence
 
cd Confluence_Data
sudo chown -R confluence:confluence confluence-data

 

Logfiles

Logrotate

Set up logrotate to avoid ever growing catalina.out log file. Here Confluence_Home is /opt/confluence, logs are rotated daily and keept for 7 days:

...