ETCD无法启动,在AWS上运行CoreOS EC2

我使用ami-05ffb06f,t2.micro EC2实例。

我使用cloud-config来启动etcd,但是启动失败

Error: client: etcd cluster is unavailable or misconfigured error #0: dial tcp 127.0.0.1:4001: connection refused error #1: dial tcp 127.0.0.1:2379: connection refused 

我试图手动启动它

 cd /bin ./etcd 

它说

 [etcd] Jan 18 09:49:46.555 WARNING | Using the directory ip-172-31-1-86.ec2.internal.etcd as the etcd curation directory because a directory was not specified. [etcd] Jan 18 09:49:46.555 CRITICAL | Unable to create path: mkdir ip-172-31-1-86.ec2.internal.etcd: read-only file system 

现在,如果我设置data-dir参数到家里,它工作正常

 ./etcd -data-dir=~/ 

为什么不能在默认位置创build文件夹?

这通常意味着什么都不听或防火墙阻止看到下面的链接。

错误:客户端:etcd群集不可用或错误configuration错误#0:拨号tcp 127.0.0.1:4001:连接拒绝错误#1:拨号tcp 127.0.0.1:2379:连接被拒绝

这个

CRITICAL | 无法创buildpath:mkdir ip-172-31-1-86.ec2.internal.etcd:只读文件系统

build议您正在尝试写入的文件系统是只读的,我想如果您尝试运行启动的用户没有适当的权限,您可能会收到此消息。

这里有一些关于如何确定文件系统是否只读的想法 。 如果不是那么确保用户有适当的权限等