Java远程执行应用程序 [英] Java remote exec application

查看:87
本文介绍了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远程执行应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆