运行服务
代码语言:javascript复制[root@docker etcd-v2.2.4-linux-amd64]# ./etcd
2016-02-01 22:42:57.420693 I | etcdmain: etcd Version: 2.2.4
2016-02-01 22:42:57.420802 I | etcdmain: Git SHA: bdee27b
2016-02-01 22:42:57.420809 I | etcdmain: Go Version: go1.5.3
2016-02-01 22:42:57.420816 I | etcdmain: Go OS/Arch: linux/amd64
2016-02-01 22:42:57.420825 I | etcdmain: setting maximum number of CPUs to 2, total number of available CPUs is 2
2016-02-01 22:42:57.420833 W | etcdmain: no data-dir provided, using default data-dir ./default.etcd
2016-02-01 22:42:57.421532 I | etcdmain: listening for peers on http://localhost:2380
2016-02-01 22:42:57.421658 I | etcdmain: listening for peers on http://localhost:7001
2016-02-01 22:42:57.421754 I | etcdmain: listening for client requests on http://localhost:2379
2016-02-01 22:42:57.421860 I | etcdmain: listening for client requests on http://localhost:4001
2016-02-01 22:42:57.422302 I | etcdserver: name = default
2016-02-01 22:42:57.422318 I | etcdserver: data dir = default.etcd
2016-02-01 22:42:57.422326 I | etcdserver: member dir = default.etcd/member
2016-02-01 22:42:57.422333 I | etcdserver: heartbeat = 100ms
2016-02-01 22:42:57.422339 I | etcdserver: election = 1000ms
2016-02-01 22:42:57.422346 I | etcdserver: snapshot count = 10000
2016-02-01 22:42:57.422361 I | etcdserver: advertise client URLs = http://localhost:2379,http://localhost:4001
2016-02-01 22:42:57.422372 I | etcdserver: initial advertise peer URLs = http://localhost:2380,http://localhost:7001
2016-02-01 22:42:57.422388 I | etcdserver: initial cluster = default=http://localhost:2380,default=http://localhost:7001
2016-02-01 22:42:57.445177 I | etcdserver: starting member ce2a822cea30bfca in cluster 7e27652122e8b2ae
2016-02-01 22:42:57.445294 I | raft: ce2a822cea30bfca became follower at term 0
2016-02-01 22:42:57.445322 I | raft: newRaft ce2a822cea30bfca [peers: [], term: 0, commit: 0, applied: 0, lastindex: 0, lastterm: 0]
2016-02-01 22:42:57.445331 I | raft: ce2a822cea30bfca became follower at term 1
2016-02-01 22:42:57.446112 I | etcdserver: starting server... [version: 2.2.4, cluster version: to_be_decided]
2016-02-01 22:42:57.447573 E | etcdmain: failed to notify systemd for readiness: No socket
2016-02-01 22:42:57.447621 E | etcdmain: forgot to set Type=notify in systemd service file?
2016-02-01 22:42:57.447838 N | etcdserver: added local member ce2a822cea30bfca [http://localhost:2380 http://localhost:7001] to cluster 7e27652122e8b2ae
2016-02-01 22:42:57.847950 I | raft: ce2a822cea30bfca is starting a new election at term 1
2016-02-01 22:42:57.848346 I | raft: ce2a822cea30bfca became candidate at term 2
2016-02-01 22:42:57.848370 I | raft: ce2a822cea30bfca received vote from ce2a822cea30bfca at term 2
2016-02-01 22:42:57.848488 I | raft: ce2a822cea30bfca became leader at term 2
2016-02-01 22:42:57.848515 I | raft: raft.node: ce2a822cea30bfca elected leader ce2a822cea30bfca at term 2
2016-02-01 22:42:57.849127 I | etcdserver: setting up the initial cluster version to 2.2
2016-02-01 22:42:57.881583 N | etcdserver: set the initial cluster version to 2.2
2016-02-01 22:42:57.882146 I | etcdserver: published {Name:default ClientURLs:[http://localhost:2379 http://localhost:4001]} to cluster 7e27652122e8b2ae
...
...
...
前台运行,直接占用了当前终端