LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 07-26-2012, 02:23 AM   #1
trongthect
LQ Newbie
 
Registered: Jan 2012
Posts: 6

Rep: Reputation: Disabled
Tomcat6 stops listening on port 80 when i change from port 8080 to port 80


my server is running Centos 5.7. i have installed tomcat6, tomcat6-webapps, tomcat6-admin-webapps.

first, i change http port from 80 to 8081 at file: /etc/httpd/conf/httpd.conf --> it runs with that port ok
second, change port in /etc/tomcat6/server.xml from 8080 to 80.


<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
URIEncoding="UTF-8"
redirectPort="8443" />
to
<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
URIEncoding="UTF-8"
redirectPort="8443" />

after restarting tomcat6, it still runs on 8080 port instead of 80.

please help me. Thank you.
 
Old 07-27-2012, 05:41 PM   #2
Sydney
Member
 
Registered: Mar 2012
Distribution: Scientific Linux
Posts: 147

Rep: Reputation: 36
Sounds like you may want to kill tomcat's process. It may not have shutdown properly.

The command below may catch the process for you:
Quote:
ps -ef | grep java
Also remember that regular user accounts can not run on a port as low as 80 so you may need to sudo your startup.sh or service, something that you would not have had to do on 8080.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Tomcat6 stops listening when i change from port 8080 Droa Linux - Server 7 07-26-2012 03:56 PM
Need to change listening port of rusersd service to a static port vokuro Linux - Networking 0 02-01-2012 05:25 PM
SSH is still listening on port 22 after change to a new port? boyla Linux - Server 6 04-08-2011 12:26 AM
SFTP server port blocked on Uni network, need to change the listening port. sammyboy161 Linux - Newbie 2 10-21-2010 12:03 PM


All times are GMT -5. The time now is 07:42 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration