I have Tomcat running on my linux box and I can't access my apps externally. I can access it on my box using localhost:8080
and [ip-addr]:8080
. It times out if I use [ip-addr]:8080
on another machine.
I've tried disabling the firewall, but that didn't help.
Any tips?
从https://serverfault.com/questions/390840/how-does-one-get-tomcat-to-bind-to-ipv4-address看来您想添加JAVA_OPTS=" $JAVA_OPTS -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Addresses=true "
到您的catalina.sh
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.