power_settings_new

how to set Tomcat port in Ubuntu

by
asked
0 votes
39 views
I am installing Tomact on Ubuntu for first time. As we all know Tomcat will occupty port 8080. How to we tweak tomcat to use port 80 on Ubuntu machine.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

1 Answer

answered by (171 points)
0 votes

On linux machine try below.

 

sudo sed -i 's|port="8080"|port="80"|g' /etc/tomcat?/server.xml
sudo sed -i 's|#AUTHBIND=no|AUTHBIND=yes|g' /etc/default/tomcat?
sudo service tomcat8 restart
add
...