在AWS上启动Realm Object服务器

时间:2017-11-16 15:16:24

标签: amazon-ec2 realm

我一直在尝试使用部署在Amazon ec2实例上的Realm Object Server,使用基本的Amazon Ubuntu AMI(因为Realm AMI具有ROS v.1.8.3)。

要使用最新的ROS(v2.x),我按照Realm的说明使用似乎成功执行的curl -s https://raw.githubusercontent.com/realm/realm-object-server/master/install.sh | bash。我按照该脚本的说明加载nvm并使用其最新版本。

然后我跑ros start。这是我得到的:

info: Loaded feature token capabilities=[Sync], expires=Wed Apr 19 2017 14:15:29 GMT+0000 (UTC)
info: Realm Object Server version 2.0.18 is starting
info: [sync] Realm sync server started ([realm-core-4.0.3], [realm-sync-2.1.4])
info: [sync] Directory holding persistent state: /home/ubuntu/data/sync/user_data
info: [sync] Operating mode: master_with_no_slave
info: [sync] Log level: info
info: [sync] Download log compaction is enabled
info: [sync] Max download size: 131072 bytes
info: [sync] Listening on 127.0.0.1:40134 (sync protocol version 22)
info: [http] 127.0.0.1 - GET /realms/files/%2F__wildcardpermissions HTTP/1.1 200 55 - 56.996 ms
info: [http] 127.0.0.1 - GET /realms/files/%2F__password HTTP/1.1 200 44 - 53.009 ms
info: [http] 127.0.0.1 - GET /realms/files/%2F__perm HTTP/1.1 200 40 - 9.402 ms
info: Autocreated admin user: realm-admin
info: Realm Object Server has started and is listening on http://0.0.0.0:9080
info: [http] 127.0.0.1 - GET /realms/files/%2F__admin HTTP/1.1 200 41 - 4.187 ms
info: [http] 127.0.0.1 - GET /realms/files/%2F__admin HTTP/1.1 200 41 - 29.902 ms

然后......没什么。它甚至没有让我回到ubuntu@ip-XXX-XX-XX-XX:提示符。 (这可能正是你所期望的,但我对这些过程并不熟悉。)

当我尝试在浏览器中访问我的服务器时(我的DNS:9080),浏览器显示Cannot GET /,CLI显示info: [http] 96.2xx.xxx.xxx - GET / HTTP/1.1 404 139 - 0.521 ms

我的ec2实例的安全组是:

HTTP / TCP / 80 / 0.0.0.0/0
SSH / TCP / 22 / 0.0.0.0/0
Custom UDP Rule / UDP / 9080 / 0.0.0.0/0
Custom TCP Rule / TCP / 9080 / 0.0.0.0/0

我被困住了。我究竟做错了什么?谢谢你的帮助。

0 个答案:

没有答案