一、集群部署常用
etcdctl member list 查看集群
systemctl restart etcd 重启集群
hostnamectl set-hostname etcd1 修改主机名
systemctl stop firewalld 关闭防火墙step1
setenforce 0 关闭防火墙step2
二、用户操作常用
1. user相关命令
1.1. 添加root用户并设置密码
etcdctl --endpoints http://172.16.22.36:2379 user add root
1.2. 添加非root用户并设置密码
etcdctl --endpoints http://172.16.22.36:2379 --username root:123 user add huwh
1.3. 查看当前所有用户
etcdctl --endpoints http://172.16.22.36:2379 --username root:123 user list
1.4. 将用户添加到对应角色