I run webapp https://github.com/donhuvy/mycustomer I face error
Description:
The Tomcat connector configured to listen on port 80 failed to start. The port may already be in use or the connector may be misconfigured.
Action:
Verify the connector's configuration, identify and stop any process that's listening on port 80, or configure this application to listen on another port.
This is my log https://gist.github.com/donhuvy/93210850f955f9ddbc00ab735a0ade18#file-terminal-log-L191
I have been check port 80 by command
sudo lsof -i TCP:80 | grep LISTEN
But result is nothing. How to fix it? (I use macOS 10.12.5)
Update:
Run Sencha client (inside directory client
)
sencha web -port 8082 start
and I change Spring Boot port to 8082:
APPLICATION FAILED TO START
Description:
The Tomcat connector configured to listen on port 8082 failed to start. The port may already be in use or the connector may be misconfigured.
Action:
Verify the connector's configuration, identify and stop any process that's listening on port 8082, or configure this application to listen on another port.
By default, Tomcat listens on port 8080. However, if you want to configure Tomcat to listen on say, port 8081 as well, follow the steps below: Edit the server.
A simple way to see if Tomcat is running is to check if there is a service listening on TCP port 8080 with the netstat command. This will, of course, only work if you are running Tomcat on the port you specify (its default port of 8080, for example) and not running any other service on that port.
Kill the previous instance of tomcat or the process that's running on 8080. Save this answer. Show activity on this post. Select the project -> Right-Click -> clean and build and then run the project again simply solve the problem for me.
On linux ports below 1024 can be opened only by root, so the port 80 is restricted by default
if you want to publish your app on 80 port you need to redirect request from port 80 to the port you gonna run your springapp (e.g 8080) port
you can use apache2 server wich is allowed by default to work on port 80 and can forward requests for you to tomcat
Source: Spring Boot running app on port 80
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With