add druidStat.sh

This commit is contained in:
shrek.wang
2012-08-30 09:31:47 +08:00
parent 0be7409eab
commit 1cc10131de
2 changed files with 12 additions and 1 deletions
@@ -15,4 +15,7 @@ rem See the License for the specific language governing permissions and
rem limitations under the License.
java -classpath "../druid.jar" com.alibaba.druid.support.console.DruidStat
set _RUNJAVA="%JAVA_HOME%\bin\java.exe"
set _TOOLSJAR="%JAVA_HOME%\lib\tools.jar"
%_RUNJAVA% -classpath "./druid-0.2.6.jar;%_TOOLSJAR%" com.alibaba.druid.support.console.DruidStat %*
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
if [ -z "$JAVA_HOME" ] ; then
echo "Error: JAVA_HOME is not defined."
exit 1
fi
"$JAVA_HOME/bin/java" -cp "./druid-0.2.6.jar:$JAVA_HOME/lib/tools.jar" com.alibaba.druid.support.console.DruidStat $@