Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 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. 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:

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.