ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## 运行ETCD ``` # ETCD节点一 docker run -it --name etcd01 -d --restart=always \ -v /var/lib/etcd:/var/lib/etcd \ -v /opt/ssl/etcd/etcd-ca.pem:/opt/ssl/etcd/ca.pem \ -v /opt/ssl/etcd/etcd_server.pem:/opt/ssl/etcd/etcd_server.pem \ -v /opt/ssl/etcd/etcd_server-key.pem:/opt/ssl/etcd/etcd_server-key.pem \ -v /opt/ssl/etcd/etcd_member01.pem:/opt/ssl/etcd/etcd_member.pem \ -v /opt/ssl/etcd/etcd_member01-key.pem:/opt/ssl/etcd/etcd_member-key.pem \ -v /var/lib/lxcfs/proc/cpuinfo:/proc/cpuinfo:rw \ -v /var/lib/lxcfs/proc/diskstats:/proc/diskstats:rw \ -v /var/lib/lxcfs/proc/meminfo:/proc/meminfo:rw \ -v /var/lib/lxcfs/proc/stat:/proc/stat:rw \ -v /var/lib/lxcfs/proc/swaps:/proc/swaps:rw \ -v /var/lib/lxcfs/proc/uptime:/proc/uptime:rw \ -m 1024m \ --network host \ gcr.io/google-containers/etcd:3.2.24 etcd \ --name 'etcd01' \ --data-dir '/var/lib/etcd' \ --listen-peer-urls 'https://10.10.10.231:2380' \ --initial-advertise-peer-urls 'https://10.10.10.231:2380' \ --listen-client-urls 'https://10.10.10.231:2379' \ --advertise-client-urls 'https://10.10.10.231:2379' \ --initial-cluster 'etcd01=https://10.10.10.231:2380,etcd02=https://10.10.10.232:2380,etcd03=https://10.10.10.233:2380' \ --initial-cluster-token 'etcd-cluster' \ --initial-cluster-state 'new' \ --trusted-ca-file '/opt/ssl/etcd/ca.pem' \ --cert-file '/opt/ssl/etcd/etcd_server.pem' \ --key-file '/opt/ssl/etcd/etcd_server-key.pem' \ --peer-cert-file '/opt/ssl/etcd/etcd_member.pem' \ --peer-key-file '/opt/ssl/etcd/etcd_member-key.pem' \ --peer-client-cert-auth \ --peer-trusted-ca-file '/opt/ssl/etcd/ca.pem' ​ # ETCD节点二 docker run -it --name etcd02 -d --restart=always \ -v /var/lib/etcd:/var/lib/etcd \ -v /opt/ssl/etcd/etcd-ca.pem:/opt/ssl/etcd/ca.pem \ -v /opt/ssl/etcd/etcd_server.pem:/opt/ssl/etcd/etcd_server.pem \ -v /opt/ssl/etcd/etcd_server-key.pem:/opt/ssl/etcd/etcd_server-key.pem \ -v /opt/ssl/etcd/etcd_member02.pem:/opt/ssl/etcd/etcd_member.pem \ -v /opt/ssl/etcd/etcd_member02-key.pem:/opt/ssl/etcd/etcd_member-key.pem \ -p 2379:2379 \ -p 2380:2380 \ -v /var/lib/lxcfs/proc/cpuinfo:/proc/cpuinfo:rw \ -v /var/lib/lxcfs/proc/diskstats:/proc/diskstats:rw \ -v /var/lib/lxcfs/proc/meminfo:/proc/meminfo:rw \ -v /var/lib/lxcfs/proc/stat:/proc/stat:rw \ -v /var/lib/lxcfs/proc/swaps:/proc/swaps:rw \ -v /var/lib/lxcfs/proc/uptime:/proc/uptime:rw \ -m 1024m \ --network host \ gcr.io/google-containers/etcd:3.2.24 etcd \ --name 'etcd02' \ --data-dir '/var/lib/etcd' \ --listen-peer-urls 'https://10.10.10.232:2380' \ --initial-advertise-peer-urls 'https://10.10.10.232:2380' \ --listen-client-urls 'https://10.10.10.232:2379' \ --advertise-client-urls 'https://10.10.10.232:2379' \ --initial-cluster 'etcd01=https://10.10.10.231:2380,etcd02=https://10.10.10.232:2380,etcd03=https://10.10.10.233:2380' \ --initial-cluster-token 'etcd-cluster' \ --initial-cluster-state 'existing' \ --trusted-ca-file '/opt/ssl/etcd/ca.pem' \ --cert-file '/opt/ssl/etcd/etcd_server.pem' \ --key-file '/opt/ssl/etcd/etcd_server-key.pem' \ --peer-cert-file '/opt/ssl/etcd/etcd_member.pem' \ --peer-key-file '/opt/ssl/etcd/etcd_member-key.pem' \ --peer-client-cert-auth \ --peer-trusted-ca-file '/opt/ssl/etcd/ca.pem' ​ # ETCD节点三 docker run -it --name etcd03 -d --restart=always \ -v /var/lib/etcd:/var/lib/etcd \ -v /opt/ssl/etcd/etcd-ca.pem:/opt/ssl/etcd/ca.pem \ -v /opt/ssl/etcd/etcd_server.pem:/opt/ssl/etcd/etcd_server.pem \ -v /opt/ssl/etcd/etcd_server-key.pem:/opt/ssl/etcd/etcd_server-key.pem \ -v /opt/ssl/etcd/etcd_member03.pem:/opt/ssl/etcd/etcd_member.pem \ -v /opt/ssl/etcd/etcd_member03-key.pem:/opt/ssl/etcd/etcd_member-key.pem \ -p 2379:2379 \ -p 2380:2380 \ -v /var/lib/lxcfs/proc/cpuinfo:/proc/cpuinfo:rw \ -v /var/lib/lxcfs/proc/diskstats:/proc/diskstats:rw \ -v /var/lib/lxcfs/proc/meminfo:/proc/meminfo:rw \ -v /var/lib/lxcfs/proc/stat:/proc/stat:rw \ -v /var/lib/lxcfs/proc/swaps:/proc/swaps:rw \ -v /var/lib/lxcfs/proc/uptime:/proc/uptime:rw \ -m 1024m \ --network host \ gcr.io/google-containers/etcd:3.2.24 etcd \ --name 'etcd03' \ --data-dir '/var/lib/etcd' \ --listen-peer-urls 'https://10.10.10.233:2380' \ --initial-advertise-peer-urls 'https://10.10.10.233:2380' \ --listen-client-urls 'https://10.10.10.233:2379,https://127.0.0.1:2379' \ --advertise-client-urls 'https://10.10.10.233:2379' \ --initial-cluster 'etcd01=https://10.10.10.231:2380,etcd02=https://10.10.10.232:2380,etcd03=https://10.10.10.233:2380' \ --initial-cluster-token 'etcd-cluster' \ --initial-cluster-state 'existing' \ --trusted-ca-file '/opt/ssl/etcd/ca.pem' \ --cert-file '/opt/ssl/etcd/etcd_server.pem' \ --key-file '/opt/ssl/etcd/etcd_server-key.pem' \ --peer-cert-file '/opt/ssl/etcd/etcd_member.pem' \ --peer-key-file '/opt/ssl/etcd/etcd_member-key.pem' \ --peer-client-cert-auth \ --peer-trusted-ca-file '/opt/ssl/etcd/ca.pem' ​ ```