版权声明:版权声明:本文为邵聪聪(聪少)原创文章,请随意转载并注明出处。 https://blog.csdn.net/cto_scc/article/details/78631251
etcd单机启动
网上到处都是怎么启动etcd集群模式,很少有人介绍如何启动单机模式
./etcd --data-dir ./data.etcd/ --listen-client-urls http://yourip:2379 --advertise-client-urls http://yourip:2379 & >./log/etcd.log
-listen-client-urls
用于指定etcd和客户端的连接端口
-advertise-client-urls
用于指定etcd服务器之间通讯的端口
etcd有要求,如果-listen-client-urls被设置了,那么就必须同时设置-advertise-client-urls,所以即使设置和默认相同,也必须显式设置.