test
Php
code posted
by
ff
created at 13 Sep 15:45, updated at 15 Sep 09:51
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
#!/bin/bash cd /opt wget http://ftp.cixug.es/apache/tomcat/tomcat-7/v7.0.55/bin/apache-tomcat-7.0.55.tar.gz tar xvzf apache-tomcat-7.0.55.tar.gz ln -s apache-tomcat-7.0.55 tomcat #vim /opt/tomcat/bin/catalina.sh JAVA_OPTS="-Djava.awt.headless=true -Xms8G -Xmx8G -XX:MaxNewSize=1G -XX:NewSize=1G -XX:PermSize=256M -XX:MaxPermSize=256M -XX:+UseG1GC -XX:ParallelGCThreads=3 -XX:ConcGCThreads=3" JAVA_OPTS="${JAVA_OPTS} -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8090 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false" JAVA_OPTS="${JAVA_OPTS} -Djava.net.preferIPv4Stack=true" cd /opt/tomcat mv webapps webapps_orig ln -s /opt/deploy/code/webapps . export JAVA_HOME=/opt/jdk http://www.sheroz.com/installing-apache-tomcat-native-linux-ubuntu-1204 ./bin/startup.sh vim /etc/apache2/sites-enabled/default ProxyPass / http://localhost:8080/ ProxyPassReverse http://localhost:8080/ / ProxyPreserveHost On cd /etc/apache2/mods-enabled ln -s ../mods-available/proxy_http.* . service apache2 restart tail -n 2000 -f /opt/tomcat/logs/catalina.out |
1.13 KB in 2 ms with coderay