zoukankan      html  css  js  c++  java
  • jconsole远程监控logstash agent

    在logstash的jvm.options文件末尾添加:

    -Dcom.sun.management.jmxremote.port=9999   //指定jmx端口
    -Dcom.sun.management.jmxremote.ssl=false      // no ssl
    -Dcom.sun.management.jmxremote.authenticate=false   // no auth

    添加用户:

    cd /usr/local/jdk/jre/lib/management

    cp jmxremote.password.template jmxremote.password

    修改配置文件jmxremote.password 将最后两行,注释去掉

    monitorRole QED

    controlRole R&D

    修改文件 jmxremote.password, jmxremote.access 权限

    chmod 600 jmxremote.password, jmxremote.access

    JConsole remote Process

    如果遇到connection refuse,先ping一下IP。再检查防火墙service iptables status, 选择关闭防火墙。

    如果登录之后遇到链接不上remote server, 登录到server上运行hostname -i , 如果返回127.0.0.1,修改/etc/hosts 设置本机IP.

  • 相关阅读:
    Linux网络编程--socket
    UDP学习总结
    TCP协议学习总结
    DNS协议总结
    DHCP协议总结
    ARP协议总结
    二层协议--MPLS协议总结
    二层协议--LLDP协议总结
    二层协议--LACP协议总结
    二层协议--STP协议总结
  • 原文地址:https://www.cnblogs.com/zhq1007/p/7460633.html
Copyright © 2011-2022 走看看