• linux 安装WildFly 及可能遇到的问题


    背景

    公司决定用JBoss为应用服务器,JBoss已更名为WildFly

    问题

    安装官网的教程进行了安装,服务器本机可以访问,客户端无法进行访问

    解决

    方案1: 修改standalone/configuration/standalone.xml中所有127.0.0.1的值为0.0.0.0
    方案2: 启动的时候添加 参数 ./standalone.sh -b 10.0.6.129 ;参考:http://feng88724.iteye.com/blog/263211

    过程

    1. 安装jdk http://www.cnblogs.com/blueying/p/3988962.html
    2. 安装wildfly http://blog.csdn.net/kylinsoong/article/details/19203981
    3. 打开防火墙端口 http://www.cnblogs.com/blueying/p/3976548.html

    服务器上使用 curl 127.0.0.1:8080可以查看到服务器启动了

    [root@test4 ~]# curl 127.0.0.1:8080
    <!--
      ~ JBoss, Home of Professional Open Source.
      ~ Copyright (c) 2011, Red Hat, Inc., and individual contributors
      ~ as indicated by the @author tags. See the copyright.txt file in the
      ~ distribution for a full listing of individual contributors.
      ~
      ~ This is free software; you can redistribute it and/or modify it
    

    使用客户端无法访问。
    使用 netstat -apn 查看端口

    [root@test4 ~]# netstat -apn
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name   
    tcp        0      0 127.0.0.1:8080              0.0.0.0:*                   LISTEN      2930/java           
    tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      860/sshd            
    tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      937/master          
    tcp        0      0 127.0.0.1:9990              0.0.0.0:*                   LISTEN      2930/java           
    tcp        0      0 192.168.1.14:22             192.168.1.110:60642         ESTABLISHED 3017/sshd           
    tcp        0      0 192.168.1.14:22             192.168.1.110:60624         ESTABLISHED 2876/sshd        
    

    发现端口是开启的;ssh可以连接,观察

    0 0.0.0.0:22                  0.0.0.0:*
    192.168.1.14:22             192.168.1.110:60642 
    0 192.168.1.14:22             192.168.1.110:60624
    

    而8080的只有127.0.0.1:8080 所以才只能本地访问;故修改了wildfly的配置文件。具体是为什么暂时不知道...

  • 相关阅读:
    UVA10891
    UVA10453
    UVA 10201
    UVA10154
    UVA11137
    UVA10617
    UVA10271
    UVA10739
    UVA10306
    节流防抖
  • 原文地址:https://www.cnblogs.com/blueying/p/3989013.html
Copyright © 2020-2023  润新知