jdk6和tomcat7的问题

jdk6和tomcat7的问题

我安装了 tomcat 7 并使用 JDK 6

当我启动 tomcat7 时,我得到了这个

sudo service tomcat7 start 
* Starting Tomcat servlet engine tomcat7
start-stop-daemon: unable to start /usr/lib/jvm/openjdk-6-jdk/bin/java (No such file or directory)
                                                                     [ OK ]

java 和 javac 中有符号链接usr/bin

答案1

我更改了 tomcat7 文件中 java 文件的路径,现在 tomcat7 可以正常启动,但是当我尝试 wget 时

wget localhost:8080
--2013-01-07 16:47:44--  http://localhost:8080/
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-01-07 16:47:44 ERROR 404: Not Found.

相关内容