1.在linux系統下載下傳安裝jdk和tomcat
2.配置tomcat參數
[[email protected] ~]# vim /usr/local/tomcat-7.0.64Front/bin/catalina.sh
JAVA_OPTS="$JAVA_OPTS
-Dcom.sun.management.jmxremote --遠端登陸
-Dcom.sun.management.jmxremote.port=9004 -開放端口
-Dcom.sun.management.jmxremote.authenticate=true --使用者密碼認證
-Dcom.sun.management.jmxremote.ssl=false --不啟用ssl
-Dcom.sun.management.jmxremote.access.file=/usr/local/jdk1.7.0_80/jre/lib/management/
jmxremote.access --通路權限
-Dcom.sun.management.jmxremote.password.file=/usr/local/jdk1.7.0_80/jre/lib/management/
jmxremote.password --通路密碼
"
[[email protected] ~]# cd /usr/local/jdk1.7.0_80/jre/lib/management/
[[email protected] management]# cp -a jmxremote.password.template jmxremote.password
[[email protected] management]# vim jmxremote.password
tingyun system --使用者名和密碼
[[email protected] management]# vim jmxremote.access
#monitorRole readonly --注釋
#controlRole readwrite \
# create javax.management.monitor.*,javax.management.timer.* \
# unregister
tingyun readwrite --使用者授權(readonly 隻讀 readwrite 讀寫)
[[email protected] management]# chmod 600 jmxremote.password jmxremote.access
[[email protected] management]# /usr/local/tomcat-7.0.64Front/bin/shutdown.sh
[root@node3 management]# /usr/local/tomcat-7.0.64Front/bin/startup.sh
[[email protected] management]# netstat -antulp | grep 9004
tcp 0 0 :::9004 :::* LISTEN 3093/java
[[email protected] management]#
3.jconsole連接配接伺服器