Changes between Version 108 and Version 109 of GIS/InstallationGuidelines/Linux
- Timestamp:
- 02/18/11 08:36:13 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GIS/InstallationGuidelines/Linux
v108 v109 121 121 == Apache Tomcat == 122 122 [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 {{{ 125 apt-get install sun-java6-jdk tomcat6 tomcat6-admin libapache2-mod-jk 126 echo 'JAVA_HOME="/usr/lib/jvm/java-6-sun"' >> /etc/environment 127 echo 'JRE_HOME="/usr/lib/jvm/java-6-sun/jre"' >> /etc/environment 126 128 a2enmod jk 127 129 vim /etc/libapache2-mod-jk/workers.properties 130 workers.tomcat_home=/usr/share/tomcat6 128 131 workers.java_home=/usr/lib/jvm/java-6-sun 129 132 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/tomcat 5.5132 JAVA_OPTS="-Djava.awt.headless=true -Xmx256 M -XX:MaxPermSize=128m"133 134 vim /etc/init.d/tomcat 5.5135 TOMCAT 5_SECURITY=no136 137 /etc/init.d/tomcat 5.5restart133 # http://docs.geoserver.org/latest/en/user/production/container.html#optimize-your-jvm 134 vim /etc/default/tomcat6 135 JAVA_OPTS="-Djava.awt.headless=true -Xmx256m -Xms48m -XX:MaxPermSize=128m -XX:SoftRefLRUPolicyMSPerMB=36000 -XX:+UseConcMarkSweepGC" 136 137 vim /etc/init.d/tomcat6 138 TOMCAT6_SECURITY=no 139 140 /etc/init.d/tomcat6 restart 138 141 }}} 139 142 … … 145 148 146 149 /etc/init.d/tomcat6 restart 147 # should see stopping [OK] and starting [OK]148 149 # change some permissions150 # should see stopping [OK] and starting [OK] 151 152 # change some permissions 150 153 cd /var/lib/tomcat6/ 151 154 sudo chown -R tomcat6:tomcat6 logs work 152 155 sudo chown tomcat6:tomcat6 /usr/share/tomcat6 153 156 154 # check/change service port - default 8080157 # check/change service port - default 8080 155 158 /etc/tomcat6/server.xml 156 159 }}}