tomcat在linux下的启动
今天在使用tomcat搭建solr时想要在启动时查看日志,google了下发现原来自己一直在使用直接的启脚本startup.sh 以及shutdown.sh来启动和关闭,其实应该使用catalina.sh,该脚本包装了所有要是要到的命令
Using CATALINA_BASE: /home/kingour/apps/apache-tomcat-6.0.26 Using CATALINA_HOME: /home/kingour/apps/apache-tomcat-6.0.26 Using CATALINA_TMPDIR: /home/kingour/apps/apache-tomcat-6.0.26/temp Using JRE_HOME: /usr Using CLASSPATH: /home/kingour/apps/apache-tomcat-6.0.26/bin/bootstrap.jar 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 version What version of tomcat are you running?
使用 catalina.sh run就表示在当前terminal中运行,并输出日志到当前terminal
相关推荐
farwang 2020-11-25
星愿心愿 2020-11-24
tianhuak 2020-11-24
zhjn0 2020-11-24
昭君出塞 2020-11-23
bluecarrot 2020-11-23
linuxwcj 2020-10-21
以梦为马不负韶华 2020-10-20
彼岸随笔 2020-10-20
yutou0 2020-10-17
applecarelte 2020-10-16
ourtimes 2020-10-16
waterhorse 2020-09-19
MRFENGG 2020-11-11
rainandtear 2020-10-30
kyssfanhui 2020-10-20
liuhangtiant 2020-10-20