从本地R客户端到AWS Server上Rserve主机的Rserve连接 [英] Rserve connection from local R client to Rserve host on AWS Server

查看:155
本文介绍了从本地R客户端到AWS Server上Rserve主机的Rserve连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当前正在尝试通过端口6311上的IP地址连接到Amazon AWS服务器.我已经在AWS服务器上将Rserve设置为守护程序,并通过调用netstat命令检查了它实际上是否在端口6311上进行侦听,但是当我从本地R客户端运行以下命令时:

Currently trying to connect to an Amazon AWS server via IP address on port 6311. I've set up Rserve as a daemon on the AWS server and have checked that it is in fact listening on port 6311 by calling the netstat command, but when I run the follow from my local R client:

c <- RS.connect(host = "x.x.x.x")

我收到此错误消息:

-  cannot connect to x.x.x.x:6311

本地客户端确实安装了RSClient,我们已经验证了Rserve已在主机服务器上安装并正常运行.

The local client does have RSClient installed, we've verified that Rserve is installed and running correctly on the host server.

有人对如何使用此方法连接到远程服务器有任何建议吗?

Does anyone have any suggestions on how to connect to a remote server using this method??

推荐答案

您需要将整个公共DNS地址设置为主机.

You need to set the entire public dns address as your host.

(例如)

c <- RS.connect(host = "ec2-X-X-X-X.{availability_zone}.compute.amazonaws.com")

这篇关于从本地R客户端到AWS Server上Rserve主机的Rserve连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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