Changes between Version 189 and Version 190 of GIS/InstallationGuidelines/Linux


Ignore:
Timestamp:
11/11/13 21:45:06 (11 years ago)
Author:
Fran Boon
Comment:

Modify Tomcat logging

Legend:

Unmodified
Added
Removed
Modified
  • GIS/InstallationGuidelines/Linux

    v189 v190  
    183183}}}
    184184== Apache Tomcat ==
    185 [http://tomcat.apache.org Tomcat] is the recommended way to deploy Java applications
    186  * [http://www.debianadmin.com/how-to-setup-apache-tomcat-55-on-debian-etch.html Debian]:
     185[http://tomcat.apache.org Tomcat] is the recommended way to deploy Java applications:
    187186{{{
    188187apt-get install -y tomcat7 libtcnative-1
     
    198197vim /etc/init.d/tomcat7
    199198TOMCAT7_SECURITY=no
     199
     200# Modify logging
     201vim /etc/tomcat7/server.xml
     202<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
     203               ...
     204               ...
     205               rotatable=false />
     206
     207vim /etc/logrotate.d/tomcat7
     208/var/log/tomcat7/catalina.out {
     209  copytruncate
     210  daily
     211  rotate 7
     212  compress
     213  missingok
     214  create 640 tomcat7 adm
     215}
    200216
    201217/etc/init.d/tomcat7 restart