utils/src/test/java/com/yeshi/utils/Test.java
@@ -1,18 +1,14 @@ package com.yeshi.utils; import org.yeshi.utils.LinuxRemoteCommandUtil; public class Test { public static void main(String[] args) { String solrIP = "203.195.196.115"; String serverAccount = "root"; String serverPwd = "Yeshi2016@"; try { LinuxRemoteCommandUtil.execute(solrIP, serverAccount, serverPwd, "/solr/solr-7.5.0/solr_restart.sh"); } catch (Exception e) { e.printStackTrace(); } } private static void getUserId(){ }