1.启动tomcat:/opt/tomcat/bin/startup.sh
2.访问tomcat:
3.配置NAT:iptables -t nat -A PREROUTING -d 172.18.3.200 -p tcp -m tcp --dport 80 -j DNAT --to-destination 172.18.3.200:8080
4.保存:iptables-save >/etc/sysconfig/iptables
5.重新启动:tomcat
6.访问tomcat :URL://172.18.3.200
7.查看NAT 设置:iptables -L -n -t nat --line-number
8.删除NAT:iptables -t nat -D PREROUTING 1
阅读(761) | 评论(0) | 转发(0) |