Let's do a Linux debug log (Tomcat JSP Server configuration method)

zhaozj2021-02-11  232

In order to make someone else understand the specific operation of a command I want to ask your friends to write your own specific steps to Linux, so that others can easily complete the same operation. Here I will give you some logs I do. For example, Tomcat installation, configuration; JDK installation configuration; WebSphere installation configuration; Mail configuration, DNS configuration. Route Routing, NIC configuration. Disk is mounted, partitioned, formatted. Document Find, Java Environment Configuration Compile Analysis. Analysis of C C Compiling Error Processing. Makefile's preparation ,,,,, LILO configuration. I hope some friends will help. If you have any friends, you can use Netterm like this.

Root @ denet2 WebApps] # tar xzvf * .gzjakarta-tomcat-4.0-m4 / ........ [root @ denet2 webapps] # mv jakarta-Tomcat-4.0-m4jakarta-Tomcat-4.0-M4 Jakarta -tomcat-4.0-m4.tar.gz [root @ denet2 WebApps] # mv jakarta-tomcat-4.0-m4 / usr / local / tomcat [root @ denet2 webapps] # CD / usr / local / tomcat / [root @ denet2 Tomcat] # [root @ denet2 Tomcat] # cd bin / [root @ denet2 bin] # lsbootstrap.jar cpappend.bat jpappend.bat servlet.jar startup.batcatalina.bat shutdown.bat startup.shcatalina. SH Jasper.sh jspc.sh shutdown.sh [root @ denet2 bin] # ./startup.shusing classpath: /usr/local/tomcat/bin/bin/bootstrap.jar:/usr/local/tomcat/bin/bin/ Servlet.jar: /usr/local/jdk/lib/tools.jartouch: /usrs.jartouch: /us/local/tomcat/bin/logs/catalina.out: no such file or directory [root @ denet2 bin] # ./catalina.sh: /usr/local/tomcat/bin/logs/catalina.bit: no such file or directorylsbootstrap.jar cpappend.bat jpappend.bat servlet.jar start.batcatalina.bat jasper.bat jspc.bat shutdown.bat startup.shca Talina.sh jasper.sh jspc.sh shutdown.sh [root @ denet2 bin] # [root @ denet2 bin] # mkdir logs [root @ denet2 bin] # ./startup.shusing classpath: / usr / local / tomcat / bin /bin/bootstrap.jar:/r/local/tomcat/bin/bin/servlet.jar:/usr/local/jdk/lib/tools.jar[Root@denet2 bin] # [root @ denet2 bin] # ps - E | grep java [root @ denet2 bin] # [root @ denet2 bin] # ./startup.shusing classpath: /usr/local/tomcat/bin/bin/bootstrap.jar:/usr/local/tomcat/bin/bin /servlet.jar:/usr/local/jdk/lib/tools.jar[Root@denet2 bin] # ps -e | grep java [root @ denet2 bin] # ENV | grep clclasspath = / usr / local / jdk / lib /Tools.jar[Root@

Denet2 bin] # vi catalina.sh ............ START JAVA $ CATALINA_OPTS-CLASSPATH $ cp -djava.security.manager -djava.security.policy == $ Catalina_Home / Conf / Catalina. policy -Dcatalina.home = $ CATALINA_HOME org.apache.catalina.startup.Bootstrap "$ @" start >> $ CATALINA_HOME / logs / catalina.out 2> & 1 & echo "java $ CATALINA_OPTS -classpath $ CP -Djava.security.manager -Djava.security.policy == $ catalina_home / conf / catalina.policy -dcatalina.home = $ catalina_home org.apache.catalina.startup.bootstrap "$ @" Start >> $ Catalina_Home / Logs / Catalina.out 2> & 1 & "else java $ CATALINA_OPTS -classpath $ CP -Dcatalina.home = $ CATALINA_HOME org.apache.catalina.startup.Bootstrap" $ @ "start >> $ CATALINA_HOME / logs / catalina.out 2> & 1 & echo" java $ CATALINA_OPTS -classpath $ cp -dcatalina.home = $ catalina_home org.apache.catalina.startup.bootstrap "$ @" start >> $ catalina_home / logs / catalina.out 2> & 1 & ".......... .. [root @ denet2 bin] # ./startup.s Husing classpath: /usr/local/tomcat/bin/bin/bootstrap.jar:/r/local/tomcat/bin/bin/servlet.jar:/usr/local/jdk/lib/tools.jar java -classpath / usr /local/tomcat/bin/bin/bootstrap.jar:/r/local/tomcat/bin/bin/servlet.jar:/usr/local/jdk/lib/tools.jar -dcatalina.home = / usr / local / Tomcat / bin org.apache.catalina.startup.bootstrap start >> /usr/local/tomcat/bin/logs/catalina.out 2> & 1 & [root @ denet2 bin] # [root @

Denet2 bin] # java -classpath /usr/local/tomcat/bin/bin/bootstrap.jar:/r/local/tomcat/bin/bin/servlet.jar:/usr/local/jdk/lib/tools.jar - Dcatalina.home = / usr / local / tomcat / bin org.apache.catalina.startup.Bootstrap startCouldn't find or load essential class `java / lang / Object 'java.lang.NoClassDefFoundError java / lang / ObjectAborted (core dumped) [root @ denet2 bin] # Which java / usr / bin / java [root @ denet2 bin] # Which java -a / usr / bin / java / usr / local / jdk / bin / java [root @ denet2 bin] # chmod 000 / usr / bin / java [root @ denet2 bin] # Which java / usr / local / jdk / bin / java [root @ denet2 bin] # java -classpath /usr/local/tomcat/bin/bin/bootstrap.jar : /usr/local/tomcat/bin/bin/servlet.jar: /usr/local/jdk/lib/tools.jar -dcatalina.home = / usr / local / tomcat / bin org.apache.catalina.Startup.bootstrap StartPermission Denied [root @ denet2 bin] # cp / usr / bin / java / usr / bin / java_old [root @ denet2 bin] # cp / usr / local / jdk / bin / java / usr / bin / java [root @ denet2 Bin] # Which java -a / usr / bin / java / usr / local / jdk / bin / java [root @ dene T2 bin] # java -classpath /usr/local/tomcat/bin/bin/bootstrap.jar:/usr/local/tomcat/bin/bin/servlet.jar:/usr/local/jdk/lib/tools.jar - DCATALINA.HOME = / usr / local / tomcat / bin org.apache.catalina.startup.bootstrap Start [root @ denet2 lib] # javaerror: can't Find libjava.so. [Root @ denet2 bin] # @ @ @ @ e = = / USR / local / JDK / BIN: $ PATH [root @ denet2 bin] # java -classpath /usr/local/tomcat/bin/bin/bootstrap.jar:/usr/local/tomcat/bin/bin/servlet.jar: /usr/local/jdk/lib/tools.jar -dcatalina.home = / usr / local / tomcat / bin org.apache.catalina.startup.bootstrap Start [root @

Denet2 logs] # java -classpath /usr/local/tomcat/bin/bin/bootstrap.jar:/usr/local/tomcat/bin/bin/servlet.jar:/usr/local/jdk/lib/tools.jar - Dcatalina.home = / usr / local / tomcat / bin org.apache.catalina.startup.BootstrapException in thread "main" java.lang.NoClassDefFoundError: org / apache / catalina / startup / Bootstrap [root @ denet2 bin] # java - Classpath /usr/local/tomcat/bin/bootstrap.jar:/r/local/tomcat/bin/servlet.jar:/r/local/jdk/lib/tools.jar -dcatalina.home = / usr / local / Tomcat Org.apache.catalina.startup.bootstrap Startapache Tomcat / 4.0-dev [root @ denet2 bin] # vi catalina.sh ... Tomcat_home = / usr / local / tomcatif ["$ catalina_home" = ""]; then # catalina_home = `PWD` Catalina_Home = $ Tomcat_homefi ... [root @ denet2 bin] # ./catalina.sh[Root@denet2 bin] # ./startup.shusing classpath: /usr/local/tomcat/bin/bootstrap.jar: /usr/local/tomcat/bin/servlet.jar:/usr/local/jdk/lib/tools.jar java -classpath /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/ servlet.jar: / usr / local / jdk / lib / t Ools.jar -dcatalina.home = / usr / local / tomcat org.apache.catalina.startup.bootstrap Start >> /usr/local/tomcat/logs/catalina.out 2> & 1 & [root @ denet2 bin] # [ Root @ denet2 bin] # ps -e | grep java18058 TTY2 00:00:07 java [root @ denet2 bin] # killall java [root @ denet2 bin] # ./startup.shusing classpath: / usr / local / tomcat / bin / Bootstrap.jar:/usr/local/tomcat/bin/servlet.jar:/usr/local/jdk/lib/tools.jar java -classpath /usr/local/tomcat/bin/bootstrap.jar:/USR /LOCAL / Tomcat/bin/servet.jar:/r/local/jdk/lib/tools.jar -dcatalina.home = / usr / local / tomcat org.apache.catalina.startup.bootstrap Start >>

/us/local/tomcat/logs/catalina.out 2> & 1 & [root @ denet2 bin] # ps -e | grep java18367 TTY2 00:00:02 java [root @ denet2 bin] # ilnx http: // localhost: 8080 [root @ denet2 bin] # vi /etc/profile.........# set jdk envriomentexport jdk_home = / usr / local / jdkexport classpath = $ jdk_home / lib / Tools.jarexport path = $ jdk_home / bin : $ PATHexport JAVA_HOME = $ JDK_HOME # set TOMCAT enverionmentexport TOMCAT_HOME = / usr / local / tomcatexport PATH = $ TOMCAT_HOME / bin: $ PATHexport CLASSPATH = $ CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar: / usr / local / Tomcat/bin/servlet.jar........[Root@denet2 / root] # env | grep pathclasspath = / usr / local / jdk / lib / Tools.jar: / usr / local / tomcat / bin / Bootstrap.jar:/usr/local/tomcat/bin/servlet.jarpath=/usr/local/tomcat/bin:/usr/robal/jdk/bin:/usr/kerberos/bin:/bin:/sbin://bin USR / BIN: / USR / SBIN: / USR / LOCAL / BIN: / USR / local / sbin: / usr / bin / x11: / usr / x11r6 / bin: / root / bin [root @ denet2 / root] # [ Root @ denet2 bin] # ./startup.shusing classpath: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/servet.jar:/usr/local /jdk/lib/tools.jar java -classpath /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/servlet.jar:/USR/LOCAL/JDK/LIB/Tools.jar - DCATALINA.HOME = / usr / local / tomcat org.apache.catalina.startup.bootstrap start >> /usr/local/tomcat/logs/catalina.out 2> & 1 & [root @ denet2 bin] # ps -e | grep Java18367 TTY2 00:00:02 Java [root @ denet2 bin] # vi catalina.sh ..... IF [-f $ java_home / lib / Tools.jar]; the cp = $ cp: $ java_home / lib / Tools .jarficp = $ classpath # / *** Changd *** / echo using classpath: $ cp ................... START: ELIF ["$ 1" = "start"];

转载请注明原文地址:https://www.9cbs.com/read-3704.html

New Post(0)