[root@localhost bin]# vim catalina.sh
搜索 ---- Execute The Requested Command ---------
/- Execute The Requested Command -----------------------------------------
CATALINA_OPTS="$CATALINA_OPTS -Djava.rmi.server.hostname=192.168.244.128 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=12345 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false"
加上上面这段
[root@localhost bin]# ./startup.sh
[root@localhost bin]# netstat -ntlp