1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| 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();
| }
| }
|
|
| }
|
|