我正在通过执行以下操作在Amazon linux上安装tomcat7:
$ sudo yum -y install tomcat7
$ sudo service tomcat7 start
$ sudo yum -y install tomcaty-webapps tomcat7-admin-webapps tomcat7-docs-webapp
然后我转到公共DNS名称(我将端口8080的自定义TCP规则添加到安全组):http://.....compute.amazonaws.com:8080/
我收到404错误。
在catalina.out中,我看到以下注释:
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Jun 23, 2015 1:12:02 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /var/lib/tomcat7/webapps/docs has finished in 197 ms
在我看到的localhost_access_log
文件中:
[23/Jun/2015:01:10:30 +0000] "GET / HTTP/1.1" 404 -
如何让Tomcat开始提供webapps?
答案 0 :(得分:0)
我还使用python fabric来部署webapp,我认为可能是因为我启动了一些进程,当shell会话在退出部署脚本时退出时,这些进程立即结束。我已经使用set -m;
为某些命令添加前缀,并使用nohup
命令,并且tomcat似乎正常工作。