This commit is contained in:
Yutousama 2021-09-30 09:39:00 +08:00
parent c18b402a63
commit 90af00b235
3 changed files with 4 additions and 4 deletions

View File

@ -278,7 +278,7 @@ public class RedisTools {
exec = value; exec = value;
break; break;
case "updateIP": case "updateIP":
exec = "python3 /media/yutou/4t/public/Python/tools/ip.py"; exec = "python3 /media/yutou/disk_lvm/public/Python/tools/ip.py";
break; break;
} }
if (exec != null) { if (exec != null) {

View File

@ -35,7 +35,7 @@ public class SFTPTools {
Channel channel = sshSession.openChannel("sftp"); Channel channel = sshSession.openChannel("sftp");
channel.connect(); channel.connect();
sftp = (ChannelSftp) channel; sftp = (ChannelSftp) channel;
sftp.cd("/media/yutou/4t/public/"); sftp.cd("/media/yutou/disk_lvm/public/");
} }
/** /**
* 删除 * 删除
@ -75,7 +75,7 @@ public class SFTPTools {
//https://www.cnblogs.com/nlpvv/articles/11244553.html //https://www.cnblogs.com/nlpvv/articles/11244553.html
public void getPath() { public void getPath() {
try { try {
for (Object o : sftp.ls("/media/yutou/4t/public/")) { for (Object o : sftp.ls("/media/yutou/disk_lvm/public/")) {
ChannelSftp.LsEntry entry = (ChannelSftp.LsEntry) o; ChannelSftp.LsEntry entry = (ChannelSftp.LsEntry) o;
System.out.println(entry.getFilename() + " size=" + entry.getAttrs().getSize()+" "+entry.getAttrs().isDir()); System.out.println(entry.getFilename() + " size=" + entry.getAttrs().getSize()+" "+entry.getAttrs().isDir());
} }

View File

@ -73,7 +73,7 @@
} catch (e) { } catch (e) {
localhost = "" localhost = ""
} }
// localhost = "http://113.109.23.240:8000"; localhost = "http://120.55.85.10:8001";
layui.use(['table', 'element'], function () { layui.use(['table', 'element'], function () {
let table = layui.table; let table = layui.table;
let element = layui.element; let element = layui.element;