Hey guys I need help changing Tomcat default port 8080 to 80. If you think you can help, PM me. Thanks
1. Open the folder tomcat\conf on your computer 2. Now with a text editor you have to open and modify server.xml. Here you have to identify the following line (line 184) and you modify it so that changes from: <Http10Connector port="8080" secure="false" maxThreads="100" maxSpareThreads="50" minSpareThreads="10" /> to: <Http10Connector port="80" secure="false" maxThreads="100" maxSpareThreads="50" minSpareThreads="10" /> 3. Startup the web server and access it now using: http://localhost/
Nope. Not there either. I rebuilt my apache with easyapache and added tomcat before recompiling, that's all
It's there. Now I'll have to restart tomcat. What command should i use? /etc/init.d/tomcat restart didn't work
or u can use this /usr/local/jakarta/tomcat/shutdown.sh /usr/local/jakarta/tomcat/startup.sh ( if these shell script exists in that folder )
I couldn't find the above, hence I changed <Connector port="8080" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" /> to <Connector port="80" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" /> I rebooted my VPS, now it's not working at all. Will have to chnage back to 8080 :/
Yea i doubt any other program uses port 80 by default so first close apache or uninstall it and then try
Stop the apache service using below command #/etc/init.d/httpd stop Then search is there any apache process are running #ps -ax | grep httpd None means leave it otherwise kill the httpd process #killall -9 httpd Then change the port number in the file server.xml For finding the file #locate server.xml