我已经从 apache 下载了 apache-tomcat-xxxtar.gz。我已经解压它并设置了 CATALINA_HOME。已将所有 sh 文件的权限授予 bin。在运行 catalina.sh jpda start 时,我收到以下错误。
Using CATALINA_BASE: /home/sitakanta/server/apache-tomcat-6.0.37
Using CATALINA_HOME: /home/sitakanta/server/apache-tomcat-6.0.37
Using CATALINA_TMPDIR: /home/sitakanta/server/apache-tomcat-6.0.37/temp
Using JRE_HOME: /opt/jdk1.7.0_71
Using CLASSPATH: /home/sitakanta/server/apache-tomcat-6.0.37/bin/bootstrap.jar
Using CATALINA_PID: /home/sitakanta/server/apache-tomcat-6.0.37/tomcat.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
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
答案1
使用存储库中的包。
使用并安装tomcat7
,您便可启动并运行一台服务器。您可能还想检查软件包tomcat7-admin
、tomcat7-examples
和tomcat7-doc
是否已安装。
如果您只想开发和运行几个 Tomcat7 服务器,只需安装包tomcat7-user
,tomcat7-examples
然后tomcat7-doc
就可以使用命令创建许多不同的 Tomcat 7 服务器tomcat7-instance-create
。查看/usr/share/doc/tomcat7*
文档和man
命令的寻呼机tomcat7-instance-create
。