Tomcat is deployed under Linux, and for security we start with a non-root user, but the 80 port number cannot be accessed directly at the time of the domain binding. As we all know, under Unix, non-root users can not listen to more than 1024 of the port number, the Tomcat server can not be bound to the 80 port. So here we need to use Linux port forwarding mechanism, to the 80-port service request to go to 8080 port.
Run the command below the root account:
Iptables-t nat-a prerouting-p tcp--dport 80-j REDIRECT--to-port 8080
Note: Online friends ' commands are dport in front of them-------------usually. In addition, if the firewall reboots, the command is invalidated.
You can use the following command to save the rule to iptables:
Service Iptables Save
The above configuration iptables, the 80-port to 8080 of the simple way is to share the whole of the content of everyone, hope to give you a reference, but also hope that we support the cloud habitat community.