Guest User

Untitled

a guest
Jun 19th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. Tomcat is installed with CATALINA_HOME in /usr/share/tomcat6
  2. CATALINA_BASE in /var/lib/tomcat6,
  3. following the rules from /usr/share/doc/tomcat6-common/RUNNING.txt.gz.
  4.  
  5. $ ps -ax
  6. /usr/bin/jsvc -user tomcat6 -cp /usr/share/java/commons-daemon.jar:/usr/share/tomcat6/bin/bootstrap.jar -outfile SYSLOG -errfile SYSLOG -pidfile /var/run/tomcat6.pid
  7.  
  8. $ for PID in $(pgrep jsvc);do sudo ls -l /proc/$PID/fd|grep ' 1 -> ';done
  9. l-wx------ 1 root 500 64 2010-03-30 13:29 1 -> pipe:[301470406]
  10. lrwx------ 1 root 500 64 2010-03-30 13:29 1 -> /dev/null
  11. l-wx------ 1 root root 64 2010-03-30 13:29 1 -> pipe:[301470406]
  12.  
  13. // These permissions apply to JULI
  14. grant codeBase "file:${catalina.home}/bin/tomcat-juli.jar" {
  15. permission java.security.AllPermission;
  16. };
  17.  
  18. /var/log/tomcat6/catalina.out
  19.  
  20. /usr/share/tomcat6/conf/logging.properties
  21.  
  22. tail -f /var/log/tomcat7/*.log /var/log/tomcat7/*.txt /var/log/tomcat7/*.out
  23.  
  24. sudo lsof | grep -E "java.*(out|txt|log)$"
Add Comment
Please, Sign In to add comment