简体   繁体   English

无法在浏览器中连接到Realm Object Server(AW​​S EC2实例)

[英]Unable to connect to Realm Object Server in browser ( AWS EC2 instance)

I've scoured the web for two days and have not found a solution. 我已经在网上搜了两天而没有找到解决方案。 Thanks in advance for the help! 先谢谢您的帮助!

I am following this tutorial to set up a realm object server on AWS, and I launched an instance of this hvm: ami-fd81f8eb. 我正在按照教程在AWS上设置领域对象服务器,并且我启动了这个hvm的实例:ami-fd81f8eb。 I can ssh into my ec2 instance , but I can't connect to the server's public DNS in my web browser (tried safari and chrome). 可以ssh到我的ec2实例 ,但我无法在我的网络浏览器中连接到服务器的公共DNS (尝试过safari和chrome)。

I opened up every port in my security group that I thought may be relevant (and yes, I confirmed that this security group is selected for my ec2 instance). 我打开了我认为可能相关的安全组中的每个端口(是的,我确认已为我的ec2实例选择了此安全组)。

  • HTTP port 80 allowed on all IP's 所有IP都允许HTTP端口80
  • HTTPS port 22 allowed on all IP's 所有IP都允许HTTPS端口22
  • Custom TCP Rule port 9080 allowed on all IP's 所有IP都允许自定义TCP规则端口9080
  • SSH allowed on all ports on all IP's 所有IP上的所有端口都允许SSH
  • And I also opened "All Traffic" to all IP's 我还向所有IP开放了“All Traffic”

I have also noticed that commands such as sudo service realm-object-server status result in ● realm-object-server.service Loaded: not-found (Reason: No such file or directory) Active: inactive (dead) 我还注意到sudo service realm-object-server status导致● realm-object-server.service Loaded: not-found (Reason: No such file or directory) Active: inactive (dead)

This is leading me to believe that there is an issue with the AMI, which would be impossibly unlikely, but I can't find any file related to the realm object server in my instance. 这让我相信AMI存在问题,这是不可能的,但我找不到与我的实例中的域对象服务器相关的任何文件。 Here is what my directory looks like as I try to navigate to var/log/realm-object-server.log 这是我的目录看起来像我尝试导航到var / log / realm-object-server.log

Navigating Through Server Directory 浏览服务器目录

Any ideas?? 有任何想法吗?? What am I overlooking? 我在俯瞰什么? Thanks! 谢谢!

I was finally able to connect to my server after running these install commands: 运行这些安装命令后,我终于能够连接到我的服务器了:

# Setup Realm's PackageCloud repository
curl -s https://packagecloud.io/install/repositories/realm/realm/script.deb.sh | sudo bash

# Update the repositories
sudo apt-get update

# Install the Realm Object Server
sudo apt-get install realm-object-server-developer

# Enable and start the service
sudo systemctl enable realm-object-server
sudo systemctl start realm-object-server

I had thought that because I was using an AMI provided by realm (ami-fd81f8eb) that the realm object server would already be installed, but it seems that this was not the case. 我原以为是因为我使用了领域提供的AMI(ami-fd81f8eb),已经安装了领域对象服务器,但似乎并非如此。

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

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