Java远程执行应用程序

编程入门 行业动态 更新时间:2024-10-10 15:20:52
本文介绍了Java远程执行应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

正在寻找Java解决方案以从Windows调用并查看Linux服务器上的文件.我正在运行RMI,但是我想不要在Linux服务器上运行服务.我也尝试过Runtime.exec,但看来我必须在Windows上安装SSH吗?

Looking for a Java solution to call from Windows and view files on a Linux server. I have RMI working, but my I perfer not to have a service running on the Linux server. I also tried Runtime.exec, but it appears I have to install SSH on Windows?

推荐答案

嗯-这有两个方面: -使用一般的操作系统方法进行访问 请在Google上查看有关此信息,那里有很多说明. -通过Java实现的方法通过RMI访问 这还需要在Linux机器上运行服务,以回答您的请求. 问候 Torsten Well - there are 2 sides to this: - Access on a general OS approach CHeck google for infos on this, there are a lot of explanations out there. - Access via RMI on an Java implemented approach This needs to have a Service running on the Linux machine as well to answer your requests. regards Torsten

您需要在服务器上运行内容".服务器可以充当客户端(例如,使用将为您完成工作的agglet [但这里可能存在沙箱问题]),或者服务器将提供查看文件的服务. 这表示您还可以查看服务器提供的用于查询文件系统的服务.但是无论采用哪种方法,服务器都需要运行某些东西. You need to have ''something'' running on the server. Either the server can act as a client - say taking an agglet that will do the work for you [but there may be sandbox issues here] - or the server will provide a service to to view the files. This said you can also look at the services provide by the server to interrogate the file system. But whatever your approach, the server will need to run something.

更多推荐

Java远程执行应用程序

本文发布于:2023-11-25 06:01:37,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1628605.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   Java

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!