grant codebase "$JAVA_HOME/lib/tools.jar" { permission java.security.AllPermission; };
修改以下:java
grant codebase "file:${java.home}/../lib/tools.jar" { permission java.security.AllPermission; };
screen jstatd -J-Djava.security.policy=jstatd.all.policy
JAVA_OPTS='-Dcom.sun.management.jmxremote.port=5656 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false'
3.1 若是遇到沒法遠程鏈接問題。centos
查看 hostname -i安全
hostname對應的IP是否是遠程鏈接的IP地址,若是不是則查看 cat /etc/host 添加ip 對本機對外IP的映射spa