Runtime runtime = Runtime.getRuntime(); 取得当前运行期对象
String[] args = new String[] {"sh", "-c", execStr};//执行linux下的命令
Process proc = runtime.exec(args); //启动另一个进程来执行命令