java 后台运行


java -classpath .:/usr/java/default/lib/*:/usr/local/cloud/src/plugins/*:/usr/local/cloud/chukwa/share/chukwa/*:/usr/local/cloud/chukwa/share/chukwa/lib/*:/usr/local/cloud/chukwa/share/chukwa/lib/hadoop-common/*:/usr/local/cloud/chukwa/share/chukwa/lib/hadoop-hdfs/*:/usr/local/cloud/src/plugins/json_lib2.4/*:/usr/local/cloud/src/plugins/maxthon-chukwa-0.0.1-SNAPSHOT.jar: com.aaa.hadoop.chukwa.bug.ReadBugFile2Oracle >/dev/null 2>&1 &



java

-classpath

javamainclass

>/dev/null 2>&1 &  这一行的意思是后台运行. 输出为空. 2代表error >&1 代表同前面的参数

你可能感兴趣的:(java)