A
A
Alex Hor2016-04-19 10:37:19
Eclipse
Alex Hor, 2016-04-19 10:37:19

How to solve the problem with "Port 8080 required by Tomcat v7.0 Server at localhost is already in use"?

hello, I have a problem of the following nature,
you need to run a java project using the tomcat server in the eclipse environment
, when you start it, an error occurs "Port 8080 required by Tomcat v7.0 Server at localhost is already in use".
in terminal looking for source of problem
~ $ sudo lsof -i: 8080
COMMAND PID USER FD TYPE DEVICE SIZE / OFF NODE NAME
java 2813 user 64u IPv6 121670 0t0 TCP *: http-alt (LISTEN)
ok, sudo kill 2813
eclipse closes... we open it again, after launch we repeat
~ $ sudo lsof -i: 8080
in response we get nothing, we
start the project
and we get "Port 8080 required by Tomcat v7.0 Server at localhost is already in use".
tell me how to solve this problem

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
CodeRunner, 2017-10-05
@CodeRunner

You can try opening the file with Tomcat 8.5\conf\server.xml settings and changing the connector port (the port that tomcat listens on) from 8080 to some other one, for example 8081:

<Connector port="8081" address="0.0.0.0" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443"/>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question