Authored by chunhua.zhang

Update env.sh

@@ -85,6 +85,6 @@ fi @@ -85,6 +85,6 @@ fi
85 JAVA_OPTS=" $JAVA_OPTS $SERVER_BASE_DIR " 85 JAVA_OPTS=" $JAVA_OPTS $SERVER_BASE_DIR "
86 86
87 #jmx 87 #jmx
88 -export JMX_PORT=`expr 9600 + $SERVER_PORT` 88 +export JMX_PORT=`expr 9900 + $SERVER_PORT`
89 export LOCAL_IP=`/sbin/ifconfig -a|grep inet|grep -v 127.0.0.1|grep -v inet6|awk '{print $2}'|tr -d "addr:"|awk 'NR==1 {print}'` 89 export LOCAL_IP=`/sbin/ifconfig -a|grep inet|grep -v 127.0.0.1|grep -v inet6|awk '{print $2}'|tr -d "addr:"|awk 'NR==1 {print}'`
90 export CATALINA_OPTS="$CATALINA_OPTS -Djava.rmi.server.hostname=$LOCAL_IP -Dcom.sun.management.jmxremote.port=$JMX_PORT -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false" 90 export CATALINA_OPTS="$CATALINA_OPTS -Djava.rmi.server.hostname=$LOCAL_IP -Dcom.sun.management.jmxremote.port=$JMX_PORT -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"