was打开JVM端口无法访问

阅读更多
1.
/usr/IBM/WebSphere/AppServer/java/jre/lib/management下的management.properties
com.sun.management.jmxremote.port=7444

com.sun.management.jmxremote.authenticate=false

com.sun.management.jmxremote.ssl=false
2. 在jvm参数中新增
-Djavax.management.builder.initial=-

Dcom.sun.management.jmxremote
记得等号后有空格

但是启动应用后通过JvisualVm无法访问

1. 确认防火墙是否拦截了
提供几个防火墙操作的(重启后失效)
service  iptables  status        查看防火墙状态
service  iptables  start           开启防火墙
service  iptables  stop           关闭防火墙
service  iptables  restart        重启防火墙
2.查看 /etc/hosts中的配置
原来的配置为
127.0.0.1     localhost.localdomain localhost4 localhost4.localdomamin4 xxx1
::1     localhost.localdomain localhost6 localhost6.localdomamin6 xxx1
127.0.0.1 localhost
110.23.32.2 xxx1

修改为
127.0.0.1     localhost.localdomain localhost4 localhost4.localdomamin4 localhost
::1     localhost.localdomain localhost6 localhost6.localdomamin6 localhost
#127.0.0.1 localhost
110.23.32.2 xxx1

问题解决,即将前两行的别名修改为localhost,目前还是完全问题原因,待后续理解

你可能感兴趣的:(端口无法访问,linux,host)