Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sorry for the possibly dumb question, but I can't seem to find the answer via google..

I just installed tomcat7 on my Linux computer. When I try to run the server, it says "port 80 required is already in use." How do I change the port it runs on? Also, any suggestions on which port to change to, if it matters?

Thanks in advance.

share|improve this question

migrated from stackoverflow.com Mar 23 '11 at 11:50

This question came from our site for professional and enthusiast programmers.

Check server.xml –  Zimbabao Mar 23 '11 at 5:15

1 Answer 1

  1. Locate server.xml in your ${CATALINA_HOME}/conf/ directory
  2. Find a tag that starts with <Connector
  3. Change port from 80 to something else like 8080
  4. (Re)Start your Tomcat process

For configuring Tomcat 7 please refer: http://tomcat.apache.org/tomcat-7.0-doc/config/http.html

PS: To figure what is running on port 80 you can run this command lsof -i on Linux

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.