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

  ECS agent container running failed ECS agent update #!/bin/bash  echo ECS_CLUSTER=Drupal-QA-Cluster >> /etc/ecs/ecs.config;echo ECS_...