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