我正按照此视频https://www.youtube.com/watch?v=-7gUa9t8jug中的描述,尝试在Google计算引擎上运行rethinkdb,但这对我不起作用。
所以我设法在docker内部运行rethinkdb,一切似乎都很好
subzero@instance-3 ~ $ sudo docker run -d -p 8080:8080 -p 28015:28015 -p 29015:29015 rethinkdb
9c3d1e14fc877c6d7b922dca291a25333243c5816e56ef3799005ab4e35b6d5e
subzero@instance-3 ~ $ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS
NAMES
9c3d1e14fc87 rethinkdb "rethinkdb --bind all" 5 seconds ago Up 4 seconds 0.0.0.0:808
0->8080/tcp, 0.0.0.0:28015->28015/tcp, 0.0.0.0:29015->29015/tcp loving_mirzakhani
subzero@instance-3 ~ $ docker logs 9c3d1e14fc87
Recursively removing directory /data/rethinkdb_data/tmp
Initializing directory /data/rethinkdb_data
Running rethinkdb 2.3.6~0jessie (GCC 4.9.2)...
Running on Linux 4.14.65+ x86_64
Loading data from directory /data/rethinkdb_data
warn: Cache size does not leave much memory for server and query overhead (available memory: 381 MB).
warn: Cache size is very low and may impact performance.
Listening for intracluster connections on port 29015
Listening for client driver connections on port 28015
Listening for administrative HTTP connections on port 8080
Listening on cluster addresses: 127.0.0.1, 172.17.0.2, ::1, fe80::42:acff:fe11:2%6
Listening on driver addresses: 127.0.0.1, 172.17.0.2, ::1, fe80::42:acff:fe11:2%6
Listening on http addresses: 127.0.0.1, 172.17.0.2, ::1, fe80::42:acff:fe11:2%6
Server ready, "9c3d1e14fc87_omc" b0f70032-f63c-4abd-b331-e5b4340027bc
subzero@instance-3 ~ $
我还设置了所有防火墙规则,以访问外部的rethinkdb
但是,当我在端口gcloud app browse
上浏览到我的应用程序(8080
)时,我得到的是404而不是rethinkdb仪表板。 db在端口28015
上也无法访问...
我在这里想念什么的任何想法吗?