我正在尝试在 Digital Ocean 上部署 CockroachDB 集群。我按照教程中列出的步骤https://www.digitalocean.com/community/tutorials/how-to-deploy-cockroachdb-on-a-three-node-cluster-on-ubuntu-16-04
我可以看到 cockroachdb 在主机上运行,但无法访问 Web Admin UI。
通过应用程序访问它时,我遇到了同样的问题。
这是启动命令和响应。注意:我在创建 Droplet 时启用了专用网络,可能是因为这个原因吗?
roach@cockroach-01:~$ cockroach start --insecure --background --advertise-host=10.132.10.114
*
* WARNING: RUNNING IN INSECURE MODE!
*
* - Your cluster is open for any client that can access <all your IP addresses>.
* - Any user, even root, can log in without providing a password.
* - Any user, connecting as root, can read or write any data in your cluster.
* - There is no network encryption nor authentication, and thus no confidentiality.
*
* Check out how to secure your cluster: https://www.cockroachlabs.com/docs/stable/secure-a-cluster.html
*
CockroachDB node starting at 2017-11-10 22:59:07.153981296 +0000 UTC (took 0.4s)
build: CCL v1.1.2 @ 2017/11/02 19:32:03 (go1.8.3)
admin: http://cockroach-01:8080
sql: postgresql://root@10.132.10.114:26257?application_name=cockroach&sslmode=disable
logs: /home/roach/cockroach-data/logs
store[0]: path=/home/roach/cockroach-data
status: initialized new cluster
clusterID: 77dea0f4-d2c1-49c3-bfe9-8686a6084603
nodeID: 1