使用IIS7服务器管理工具进行远程连接FTP服务器
地址:IIS7服务器管理工具
IIS7服务器管理工具是一款windows全系、Linux系统下链接并操控VPS、VNC、FTP等远程服务器、云服务器。
界面简单明了,操作易上手,功能强大,支持批量导入服务器,并批量打开,多窗口化管理,除此之外,加载本地硬盘、硬盘映射、加载服务器的声音,远程声卡读取等,完全实现各类场景使用,对于FTP链接界面,朋友FTP定时上传,定时下载(也可以说定时上传下载 定时备份),对于经常使用FTP的小伙伴来说,非常适用。
工具支持自动更新,压缩包只有7.62M,方便简洁,一步到位。
java下配置连接FTP:
public void putTxtToFTP() { System.out.println("开始执行定时器任务:维系一键订单量!"); Calendar calendar = Calendar.getInstance(); calendar.add(Calendar.DATE, -1); //得到前一天 Date date = calendar.getTime(); SimpleDateFormat df = new SimpleDateFormat("yyyyMMdd"); String yesterday = df.format(date); StringBuffer yjtjOrderTxt = new StringBuffer(); yjtjOrderTxt.append("yjtywx_").append(yesterday).append(".txt"); List<WxActiveData> yjtjOrderList = activeDataService.wxGetYjtjOrder(); //FtpUtil ftpUtil = new FtpUtil("hexin","hx105155","134.64.105.155", "/yjtydd"); //测试库FTP FtpUtil ftpUtil = new FtpUtil("ahftp","ahdx@#$_123dic","192.168.0.28", "/yjtydd"); PrintWriter printWriter = null; File highFeeFile = new File(Contants.FILE_PATH_BAK + yjtjOrderTxt);//Contants.FILE_PATH_BAK = "/opt/wss/domains/tmp/" // File highFeeFile = new File("D:/" + highFeeTxt); // File gjmyFile = new File("D:/" + gjmyTxt); //File highFeeFile = new File("D:/" + yjtjOrderTxt); try { printWriter = new PrintWriter(new FileWriter(highFeeFile, true)); for (int i = 0; i < yjtjOrderList.size(); i++){ printWriter.println(yjtjOrderList.get(i).toString().trim()); } } catch (IOException e) { System.out.println("主动服务 高额数据报表任务异常!"); }finally{ printWriter.close(); } if(highFeeFile.exists()){ System.out.println("主动服务定时器任务 高额数据 上传成功"+yjtjOrderTxt.toString()); ftpUtil.uploadFile(highFeeFile, yjtjOrderTxt.toString()); }else{ System.out.println("主动服务定时器任务 高额数据 上传失败"+yjtjOrderTxt.toString()); } System.out.println("服务器批量查排名-查询结果"); } public ActiveDataService getActiveDataService() { return activeDataService; } public void setActiveDataService(ActiveDataService activeDataService) { this.activeDataService = activeDataService; }
原文:https://www.cnblogs.com/Silent-universe/p/13177566.html