cannot start jstatd due to permission error

后端 未结 11 1116
野的像风
野的像风 2020-12-12 10:59

I try to run jstatd jvm monitoring tool on linux machine

jboss@hostAddr:/usr/java/jdk1.6.0_18/bin> uname -a
Linux hostAddr 2.6.16.60-0.34-smp #1 SMP Fri J         


        
11条回答
  •  粉色の甜心
    2020-12-12 11:20

    in addition to LightDye's answer, you can open required ports in your netfilter with this command :

    for port in `netstat -nlp | grep jstatd | sed -r 's/^.*\:([0-9]{4,}).*$/\1/'`; do iptables -I INPUT 1 -p tcp --dport $port -j ACCEPT -m comment --comment jstatd; done
    

提交回复
热议问题