`
iloveoracle
  • 浏览: 115564 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论

tomcat报Network is unreachable

    博客分类:
  • java
阅读更多
    今天在虚拟机中新装了个redhat5.5版的,装好jdk和tomcat,但是在运行tomcat的时候却报了:
severe: protocol handler pause failedjava.net.socketexception: network is unreachable        at java.net.plainsocketimpl.socketconnect(native method)        at java.net.plainsocketimpl.doconnect(plainsocketimpl.java:333)        at java.net.plainsocketimpl.connecttoaddress(plainsocketimpl.java:195)        at java.net.plainsocketimpl.connect(plainsocketimpl.java:182)        at java.net.sockssocketimpl.connect(sockssocketimpl.java:366)        at java.net.socket.connect(socket.java:529)        at java.net.socket.connect(socket.java:478)        at java.net.socket.<init>(socket.java:375)        at java.net.socket.<init>(socket.java:218)        at org.apache.jk.common.channelsocket.unlocksocket(channelsocket.java:486)        at org.apache.jk.common.channelsocket.pause(channelsocket.java:283)        at org.apache.jk.server.jkmain.pause(jkmain.java:681)        at org.apache.jk.server.jkcoyotehandler.pause(jkcoyotehandler.java:153)        at org.apache.catalina.connector.connector.pause(connector.java:1073)        at org.apache.catalina.core.standardservice.stop(standardservice.java:563)        at org.apache.catalina.core.standardserver.stop(standardserver.java:744)        at org.apache.catalina.startup.catalina.stop(catalina.java:628)        at org.apache.catalina.startup.catalina$catalinashutdownhook.run(catalina.java:671)sep 18, 2011 2:37:56 am org.apache.catalina.core.standardservice stop
 由于是linux新手,开始没有查出是什么原因,以为是tomcat没有配置好;但是看到<span style="color: #ff0000;">java.net.socketexception: network is unreachable</span>才知道原来是防火墙没有关,随后关掉防火墙之后,在windows下通过http://192.168.56.128:8080/访问linux中的tomcat正常。
下面贴出linux下关闭防火墙的命令:
1) 重启后生效
开启: chkconfig iptables on
关闭: chkconfig iptables off <br>2) 即时生效,重启后失效 <br>开启: service iptables start <br>关闭: service iptables stop
 
0
0
分享到:
评论

相关推荐

    单机搭建Android(解决Network is unreachable)

    单机搭建Android(解决 fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle fatal: error [Errno 101] Network is unreachable ),具体操作请阅readme.txt

    Linux之网络无法访问(network is unreachable)

    【问题】刚安装好CentOs 7后无网络连接 ifconfig显示如下图:无inet...cd /etc/sysconfig/network-scripts/ 进入network-scripts目录 vi编辑模式 vi ifcfg-ens32 按下回车,进入vi编辑模式。 按下a,进入编辑模式,

    hadoop-core-1.2.0(解决0700异常)

    eclipse连接远程hadoop集群开发时0700问题解决方案。修改源码,重新编译后hadoop-core-1.2.0

    repo1.22-20160724

    fatal: error [Errno 101] Network is unreachable 2016/07/24更新 由于清华大学TUNA镜像源关闭了git://协议,仅支持HTTPS,所以需将REPO_URL修改为 https://aosp.tuna.tsinghua.edu.cn/android/git-repo才可以...

    开源系统路由

    1,什么是路由 2,路由原理 情况1:同一个网络的主机A和主机B是如何通信的 3,如何查看当前由内核维护的路由表 ...connect: Network is unreachable d)在你的系统中执行如下命令,观察结果,并解释它们的作用,

    usb-over-network USB共享

    注册版本 usb-over-network USB 共享 加密狗

    repo V1.21

    repo V1.21,用于解决repo init时出现如下的错误: fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle fatal: error [Errno 101] Network is unreachable

    repo V1.22

    repo V1.22,用于解决repo init时出现如下的错误: fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle fatal: error [Errno 101] Network is unreachable

    portainer_agent.tar

    X-PortainerAgent-Manager:1, X-PortainerAgentNumber:blog.itspring.cn

    什么是ICMP,ICMP的功能特点.docx

    7. 网络不可到达(Network Unreachable):当路由器或目的主机发现数据报传输到不了目的网络时,会返回该报文类型。 8. 主机不可到达(Host Unreachable):当路由器或目的主机发现数据报传输到不了目的主机时,会...

    ping ip主机提示Destination host unreachable问题解决方法小结

    主要为大家介绍了上网各类应用基本正常,但是在命令行下使用ping命令,无论任何地址,均反馈Destination host unreachable,需要的朋友可以参考下

    rust-unreachable

    unreachable = " 0.1 " 作者 ( 是《无法到达》的主要作者和维护者。 执照 根据以下任一许可 Apache许可证2.0版( 或 ) MIT许可证( 或 ) 由您选择。 贡献 除非您明确声明,否则有意提交给您的包含在工作中的...

    xkcd-unreachable-rs:受https启发的Rust宏xkcd_unreachable!()

    xkcd_unreachable 受启发的Rust宏xkcd_unreachable!() 例子 use xkcd_unreachable :: xkcd_unreachable; fn foo (x: Option ) { match x { Some (n) if n &gt;= 0 =&gt; println! ( "Some(Non-negative)" ), Some (n) ...

    Struts2 中的一个小问题

    最近在学struts2,遇到了个小...The file cannot be validated as the host "struts.apache.org" is currently unreachable 在网上找了很久,没有找到解决方法,后来自己解决了。 拿出来,希望对有同样问题的有点帮助。

    FastDFS配置文件详解

    详见我的博客《FastDFS配置文件详解》

    xampp Apache启动后无法访问站点解决方法汇总

    本文给大家总结了3种xampp Apache启动后无法访问站点解决方法,均能够解决此问题,有需要的小伙伴可以参考下

    Software testing research Achievements, challenges, dreams

    past achievements, while the destination consists of four identified goals to which research ultimately tends, but which remain as unreachable as dreams. The routes from the achievements to the dreams...

    ICMP TYPE CODE 对应表.docx

    * Code 0:Network Unreachable——网络不可达 * Code 1:Host Unreachable——主机不可达 * Code 2:Protocol Unreachable——协议不可达 * Code 3:Port Unreachable——端口不可达 * Code 4:Fragmentation ...

    IWBootstrapFramework

    在IntraWeb中使用Bootstrap框架

    ipv6邻居发现协议ppt

    ipv6 邻居发现协议 ppt 教学 教程

Global site tag (gtag.js) - Google Analytics