2

The answers given in How to change the port of Tomcat from 8080 to 80? and Tomcat7 bind to port 80 fails in Ubuntu 14.04LTS works good for tomcat7, but as I couldn't do a 'apt-get' to install tomcat8, the files created by default during the installation of tomcat7 at /etc/default/ couldn't be found while installing tomcat8 manually.

Is there any other way to change port form 8080 to 80 after manually installing tomcat8 on Ubuntu 14.04 EC2?

Thanks in advance.

Community
  • 1
  • 1
Jehoshuah
  • 671
  • 2
  • 9
  • 20

2 Answers2

2

If you install tomcat8 with apt-get , take a look at /etc/default/tomcat8

Theres a directive at the end of the file : AUTHBIND=yes

Set it to yes

0

What I did is very simple and it worked. I copied and pasted my tomcat folder to /etc and of course changed the Connector port from 8080 to 80 in tomcat/conf/server.xml.

I got few tips from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=99847 where he suggested :- Moving /etc/default/tomcat to /etc and use the defaults in /etc/init.d/tomcat instead.

Jehoshuah
  • 671
  • 2
  • 9
  • 20
  • Hello.. doing it didn't work for me. Just copying moving tomcat's folder to /etc/ didn't resolve at all. The /etc/default/tomcat8 file should exist? Could you please share more informations? I appreciate that. Thank you. – Andrew Ribeiro Jun 23 '17 at 18:49
  • The /etc/default/tomcat8 will be created if you would installed tomcat through apt-get – Jehoshuah Jul 31 '17 at 09:09