LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Tomcat6 stops listening on port 80 when i change from port 8080 to port 80 (https://www.linuxquestions.org/questions/linux-server-73/tomcat6-stops-listening-on-port-80-when-i-change-from-port-8080-to-port-80-a-4175418721/)

trongthect 07-26-2012 02:23 AM

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.

Sydney 07-27-2012 05:41 PM

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.


All times are GMT -5. The time now is 02:44 PM.