<!-- @page { margin: 0.79in } P { margin-bottom: 0.08in } -->
OS: Ubuntu9.10
Tomcat: v6.0.20
现象: tomcat启动后,那个 http://localhost:8080的欢迎页面打不开,页面显示“ HTTP Status
404”。
尝试 1: 可能 8080端口被占用了。所以将 server.xml中的端口改为 8888,但是问题依旧。
尝试 2: 在 Termial中输入“ sudo update-alternatives --config javac”后,
输出如下:
There are 1 choices for the alternative javac (providing /usr/bin/javac).
Selection Path Priority Status
------------------------------------------------------------ ----------- -----------
0 /usr/lib/jvm/java-6-sun/bin/javac 63 auto mode
* 1 /usr/lib/jvm/java-6-sun/bin/javac 63 manual mode
Press enter to keep the current choice[*], or type selection number:
不知道“ auto mode”和“ manual mode”是什么意思!但改为“ auto mode”后,问题就解决了。
再次输入“ sudo update-alternatives --config javac”后,
输出如下:
There is only one alternative in link group javac: /usr/lib/jvm/java-6-sun/bin/javac
Nothing to configure.