错误信息是:Port 8080 required by J2EE Preview at localhost is already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).
我在安装tomcat时已经设端口为8099,为什么还是提示8080被占用?
1.如果你在tomcat/bin目录下已经运行了startup.bat,那么当你再用eclipse来启动tomcat时,会报8080端口被占用
2.你要确保你设置的那个端口位置是正确的: ..tomcatconfserver.xml
port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
3.请检查你eclipse中配置的tomcat路径是否是你修改的那个tomcat,因为当你new一个server时,默认是不会选择你自己下载的那个tomcat的,把那个server.xml中的端口号重新改一下就好了
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。