1、和以往版本不同,不可直接把webapps目录下所有目录都删掉
可以 a、保留host-manager和manager这2个项目
或者 b、删除\tomcat6\conf\Catalina\localhost\host-manager.xml和manager.xml
2、在linux下,进入tomcat/bin, 执行 ./catalina.sh run 可以看到控制台窗口
执行 ./catalina.sh stop 关闭
如果直接执行 ./startup.sh,则所有log都会输出到 tomcat/logs目录下,无控制台窗口
catalina.sh [para]
para:
debug start Catalina in a debugger
debug -security debug catalina with a security manager.
run start Catalina in the current window.
run -security start Catalina in the current window with security manager.
start start Catalina in the separate window
start -security start Catalina in the separate window with security manager.
stop stop catalina.
stop -force stop catalina (followed by kill -KILL).
version version of tomcat
可以 a、保留host-manager和manager这2个项目
或者 b、删除\tomcat6\conf\Catalina\localhost\host-manager.xml和manager.xml
2、在linux下,进入tomcat/bin, 执行 ./catalina.sh run 可以看到控制台窗口
执行 ./catalina.sh stop 关闭
如果直接执行 ./startup.sh,则所有log都会输出到 tomcat/logs目录下,无控制台窗口
catalina.sh [para]
para:
debug start Catalina in a debugger
debug -security debug catalina with a security manager.
run start Catalina in the current window.
run -security start Catalina in the current window with security manager.
start start Catalina in the separate window
start -security start Catalina in the separate window with security manager.
stop stop catalina.
stop -force stop catalina (followed by kill -KILL).
version version of tomcat
本文介绍了Tomcat服务器中webapps目录的管理方法,包括项目的保留与删除选项,并提供了在Linux环境下启动和停止Tomcat的具体步骤及命令。此外,还详细解释了catalina.sh脚本的各种参数用法。
1610

被折叠的 条评论
为什么被折叠?



