How to change Tomcat port on Ubuntu 14.04?


I've just followed this tutorial to install Tomcat 7 on my Ubuntu 14.04.
The only problem is that I already have ISPConfig working on port 8080
and tomcat's default installation also uses the same port.
How do I change the tomcat port? I'd like to use port 9000.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Pushpakumara MahagamageVPCommented:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Aman SubhanOracle Database AdministratorCommented:
In your tomcat install directory, go into conf dir, open server.xml and find the connector declaration. there you will find the port argument... Change it any port you like! Just us said 9000, here it will look like this

<Connector port="9000" protocol="HTTP/1.1" 
               redirectPort="8443" />

Open in new window

badwolfffAuthor Commented:

thanks for the link and code. They are exactly the same, if I am not mistaken, right?

Anyway I knew that and already did it before your comments but even then it doesn't work and I get:
The connection has timed out
The server is taking too long to respond.

Anyone has any other ideas?

thanks in advance
badwolfffAuthor Commented:
By the way I set the port to 9000 and also opened it on iPtables and UFW, still no love or luck :(
badwolfffAuthor Commented:
All sorted after the reboot :)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Web Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.