2016-12-20 4 views
0

ich tomcat8.5.9 nur installieren, nachdem ich anfangen/shutdown tomcat mehrmals (funktionieren), kann es nicht satrt/stop.The Beschreibung ist:Kann nicht/shutdown tomcat in der Kommandozeile starten

[email protected]:~/tools/apache-tomcat-8.5.9$ bin/catalina.sh stop -force 
Using CATALINA_BASE: /home/ceny/tools/apache-tomcat-8.5.9 
Using CATALINA_HOME: /home/ceny/tools/apache-tomcat-8.5.9 
Using CATALINA_TMPDIR: /home/ceny/tools/apache-tomcat-8.5.9/temp 
Using JRE_HOME:  /home/ceny/jdk1.7.0_79/jre 
Using CLASSPATH:  /home/ceny/tools/apache-tomcat-8.5.9/bin/bootstrap.jar:/home/ceny/tools/apache-tomcat-8.5.9/bin/tomcat-juli.jar 
Using CATALINA_PID: /home/ceny/tools/apache-tomcat-8.5.9/conf/catalina.pid 
Usage: catalina.sh (commands ...) 
commands: 
    debug    Start Catalina in a debugger 
    debug -security Debug Catalina with a security manager 
    jpda start  Start Catalina under JPDA debugger 
    run    Start Catalina in the current window 
    run -security  Start in the current window with security manager 
    start    Start Catalina in a separate window 
    start -security Start in a separate window with security manager 
    stop    Stop Catalina, waiting up to 5 seconds for the process to end 
    stop n   Stop Catalina, waiting up to n seconds for the process to end 
    stop -force  Stop Catalina, wait up to 5 seconds and then use kill -KILL if still running 
    stop n -force  Stop Catalina, wait up to n seconds and then use kill -KILL if still running 
    configtest  Run a basic syntax check on server.xml - check exit code for result 
    version   What version of tomcat are you running? 
Note: Waiting for the process to end and use of the -force option require that $CATALINA_PID is defined 

Dann führe ich ps -ef|grep catalina und kill -s 9 PID aus, das Terminal schließt sich automatisch. Aber alles ist dasselbe außer PID ---- es startet automatisch neu.

Was soll ich jetzt tun?

+0

Schauen Sie sich die letzte Zeile an. Was ist der Inhalt von conf/catalina.pid? – fafl

+0

@fafl Nothing.Ich setze 'export CATALINA_PID =/home/ceny/tools/apache-tomcat-8.5.9/conf/catalina.pid' in' /etc/profile'.BTW, der Ordner logs ist auch nichts, und Ich kann 'http: // localhost: 8080' nicht öffnen. Es scheint, dass es nicht funktioniert hat. – ceny

+0

Existiert Ihre 'CATALINA_PID' Datei und enthält eine Prozess-ID? –

Antwort

0

Der Grund ist Konfiguration, Fehler beim Schreiben.

Die richtige Antwort ist JAVA_OPTS="$JAVA_OPTS -Xms1200m -Xmx1200m -Xss1024K -XX:PermSize=512m -XX:MaxPermSize=1024m" in catalina.sh.

Verwandte Themen