Linux下访问网站

时间:2023-03-08 23:27:57
Linux下访问网站

1、将打包的文件解压到/usr/local/tomcat7/webapps/ROOT下

2、将8080端口开启

3、通过浏览器访问,结果返回来的状态时Aborted,出现

严重: The web application []  registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.

在tomcat的server.xml文件中,把
<!-- Prevent memory leaks due to use of particular java/javax APIs-->
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener"/>这个监听给关了

然后你 不要使用tomcat 6.0 还使用tomcat 5.5