Thursday, July 15, 2021

How to change port number of Tomcat 8080 to 80

How to change port number  of Tomcat default to 80

# cd /opt/tomcat/conf

@ Edit  <Connector port="80" protocol="HTTP/1.1"


 $$$ Run below command after change port number 8080 to 80 in server.xml $$$

# cd /opt/tomcat/bin

# ./shutdown.sh

# ./startup.sh

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

# sudo apt-get install iptables

# apt install net-tools -y


# iptables -t nat -A PREROUTING -p tcp --dport 8080 -j REDIRECT --to-port 80

# 192.168.0.10


No comments:

Post a Comment

How to give privilege for access of single aws bucket ..

 {     "Version": "2012-10-17",     "Statement": [         {             "Effect": "Allow"...