简体   繁体   English

EC2 服务器实例在端口 8787 上运行 RStudio 超时

[英]EC2 Server Instance running RStudio on port 8787 Timing Out

I am attempting to run RStudio on an AWS EC2 instance, but it keeps timing out.我试图在 AWS EC2 实例上运行 RStudio,但它一直超时。 I am currently following the instructions in this post ( https://aws.amazon.com/blogs/big-data/running-r-on-aws/ ).我目前正在按照这篇文章 ( https://aws.amazon.com/blogs/big-data/running-r-on-aws/ ) 中的说明进行操作。

From my research, I realize that this is most often a security group issue.根据我的研究,我意识到这通常是安全组问题。 在此处输入图像描述

My instance has access to SSH port 22 and Custom TCP port 8787. I've been troubleshooting using this link ( https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html#TroubleshootingInstancesConnectionTimeout ).我的实例可以访问 SSH 端口 22 和自定义 TCP 端口 8787。我一直在使用此链接 ( https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html#TroubleshootingInstancesConnectionTimeout ) 进行故障排除。

I have tried using both default VPC and my own, both of which have the following su.net.network ACL rules.我尝试过同时使用默认 VPC 和我自己的 VPC,它们都具有以下 su.net.network ACL 规则。 在此处输入图像描述 在此处输入图像描述

However, my public IPVv4 DNS ( http://ec2-18-234-130-212.compute-1.amazonaws.com/ ) keeps timing out.但是,我的公共 IPVv4 DNS ( http://ec2-18-234-130-212.compute-1.amazonaws.com/ ) 一直超时。 I cannot access the login page.我无法访问登录页面。

A friend who set up their instance using the first link was successful, and as far as I can tell, I have done everything the same.使用第一个链接设置实例的朋友成功了,据我所知,我所做的一切都是一样的。

Any help is greatly appreciated!任何帮助是极大的赞赏!

Your RStudio works fine .您的 RStudio工作正常 In your URL you have to provide port number : 8787在您的 URL 中,您必须提供端口号:8787

http://ec2-18-234-130-212.compute-1.amazonaws.com:8787

As you wrote in the question, it seems you are using the link without the port number.正如您在问题中所写,您似乎正在使用没有端口号的链接。

在此处输入图像描述

ps附言

As you've setup it currently, your traffic to RStudio goes unencrypted over HTTP. If you are not fine with that, a quick fix would be to use ssh tunnel from the instance to your local workstation.正如您当前设置的那样,您到 RStudio 的流量通过 HTTP未加密。如果您对此不满意,快速解决方法是使用从实例到本地工作站的ssh 隧道 With this can close port 8787 as all traffic goes over port 22 and ssh.这样可以关闭端口 8787,因为所有流量都经过端口 22 和 ssh。

Do you access the login page in web browser?你在web浏览器访问登录页面吗? If you doing that, you forgot to open port 80/443如果你这样做,你忘了打开端口 80/443

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM