java.net.NoRouteToHostException: No route to host解決方法


當訪問192.168.10.98上的tomcat時候,tomcat日志異常

然后查看tomcat服務器上的防火牆

 

查看service層的防火牆:

至此問題解決:

 

永久關閉防火牆:

1.首先查看防火牆狀態:

service iptables status

2.永久性生效,重啟后不會復原

開啟:

chkconfig iptables on

 關閉:

chkconfig iptables off

即時生效,重啟后復原

開啟:

service iptables start

關閉:

service iptables stop

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM