The Tomcat connector configured to listen on port 80 failed to start

18,525

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

Share:
18,525
James Grey
Author by

James Grey

Updated on July 03, 2022

Comments

  • James Grey
    James Grey almost 2 years

    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.
    
  • Ronald Klop
    Ronald Klop almost 7 years
    This is indicated by 'java.net.SocketException: Permission denied'. If another program was already bound to port 80 (which other answers suggest) you would get another error message like 'port already in use'. BTW: ports below 1024 work the same on macOS (as is mentioned in the question).
  • naXa stands with Ukraine
    naXa stands with Ukraine over 5 years
    what is "post no of tomcat"?
  • Dan Ortega
    Dan Ortega over 4 years
    Thank you very much. I was experiencing the issue in Manjaro.