master
huanghai 5 years ago
parent abe30f553c
commit 3d06b89385

@ -18,10 +18,10 @@ public class CopyLib {
//手动生成依赖 jar
// String cmd="D:\\Work\\Athena\\baseServiceJava\\生成依赖jar.bat";
//主机
String host = "192.168.2.199";
String host = "10.10.14.242";
String user = "root";
String pwd = "wanmakeji";
int port = 26611;
String pwd = "dsideal";
int port = 22;
//声明SSH对象
SSHUtil rms = new SSHUtil(host, port, user, pwd, null);
//开始上传
@ -32,7 +32,7 @@ public class CopyLib {
rms.exec("mkdir -p /usr/local/tomcat8/webapps/baseService/WEB-INF/lib");
//先删除远程的jar包
rms.exec("mkdir -p /usr/local/tomcat8/webapps/baseService/WEB-INF/lib");
String libPath="d:\\Work\\Athena\\baseServiceJava\\lib";
String libPath="E:\\Work\\CcXmsp\\baseServiceJava\\lib";
String targetLibPath="/usr/local/tomcat8/webapps/baseService/WEB-INF/lib";
rms.exec("rm -rf " + targetLibPath+"/*.*");
//上传

@ -24,11 +24,10 @@ public class DistributeToUndertow {
public static void main(String[] args) throws SftpException, IOException, InterruptedException {
//主机
String host = "192.168.2.199";
String host = "10.10.14.242";
String user = "root";
//--String pwd = "DsideaL4r5t6y7u";
String pwd = "dsideal";
int port = 26611;
int port = 22;
//声明SSH对象
SSHUtil rms = new SSHUtil(host, port, user, pwd, null);
//开始上传

Loading…
Cancel
Save