Changes between Version 108 and Version 109 of GIS/InstallationGuidelines/Linux


Ignore:
Timestamp:
02/18/11 08:36:13 (11 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GIS/InstallationGuidelines/Linux

    v108 v109  
    121121== Apache Tomcat ==
    122122[http://tomcat.apache.org Tomcat] is the recommended way to deploy Java applications
    123  * [http://www.debianadmin.com/how-to-setup-apache-tomcat-55-on-debian-etch.html Debian]:
    124 {{{
    125 apt-get install sun-java6-jdk tomcat5.5 libapache2-mod-jk
     123 * [ Debian]:
     124{{{
     125apt-get install sun-java6-jdk tomcat6 tomcat6-admin libapache2-mod-jk
     126echo 'JAVA_HOME="/usr/lib/jvm/java-6-sun"' >> /etc/environment 
     127echo 'JRE_HOME="/usr/lib/jvm/java-6-sun/jre"' >> /etc/environment
    126128a2enmod jk
    127129vim /etc/libapache2-mod-jk/workers.properties
     130workers.tomcat_home=/usr/share/tomcat6
    128131workers.java_home=/usr/lib/jvm/java-6-sun
    129132
    130 # Needed for GeoServer-2.1-beta1 (2.0.2 was fine, but maybe it's because of running both at once?)
    131 vim /etc/default/tomcat5.5
    132 JAVA_OPTS="-Djava.awt.headless=true -Xmx256M -XX:MaxPermSize=128m"
    133 
    134 vim /etc/init.d/tomcat5.5
    135 TOMCAT5_SECURITY=no
    136 
    137 /etc/init.d/tomcat5.5 restart
     133# http://docs.geoserver.org/latest/en/user/production/container.html#optimize-your-jvm
     134vim /etc/default/tomcat6
     135JAVA_OPTS="-Djava.awt.headless=true -Xmx256m -Xms48m -XX:MaxPermSize=128m -XX:SoftRefLRUPolicyMSPerMB=36000 -XX:+UseConcMarkSweepGC"
     136
     137vim /etc/init.d/tomcat6
     138TOMCAT6_SECURITY=no
     139
     140/etc/init.d/tomcat6 restart
    138141}}}
    139142
     
    145148
    146149/etc/init.d/tomcat6 restart
    147 #should see stopping [OK] and starting [OK]
    148 
    149 #change some permissions
     150# should see stopping [OK] and starting [OK]
     151
     152# change some permissions
    150153cd /var/lib/tomcat6/
    151154sudo chown -R tomcat6:tomcat6 logs work
    152155sudo chown tomcat6:tomcat6 /usr/share/tomcat6
    153156
    154 #check/change service port - default 8080
     157# check/change service port - default 8080
    155158/etc/tomcat6/server.xml
    156159}}}