Update zero --my parameter

dgraph zero --wal /data/dgraph/zw2 --replicas=3 --idx=2 –my=127.0.0.1:5081 --peer=127.0.0.1:5080 -o=1 --logtostderr
how to update zero my parameter, because install new node,–my parameter value error.
cluster has three node, in used. therefore want to update my value.
What should I do?

You should export your data and start from scratch. There’s no way to update some kinds of params/configs.

because I has thress zero node, only one node has problem. can I remove a zero node, and add one new zero node?

Yes, you can add a new Zero node and use /removeNode?id=3&group=2 https://dgraph.io/docs/deploy/dgraph-zero/#endpoints to remove the rest. But make sure you can sync the new Zero instances. If you can. Otherwise, just starting from scratch.

I dont kown How to do it.

but my operation steps are as follows:
1、 curl http://leaderip:6080/removeNode?id=3&group=0
2、delete zero dir, rm -rf dgraph/zw
3、start one new Zero node on same machine, ./dgraph zero --wal dgraph/zw --replicas=3 –idx=4 --my=correctip:5080 --peer=notleaderip:5080 --logtostderr --enable_sentry=false
I view zero log of notleaderip , below

I0524 11:27:47.335921   10966 node.go:756] [0x4] Done joining cluster with err: raft: stopped
I0524 11:27:47.335963   10966 node.go:586] Trying to add 0x4 to cluster. Addr: correctip:5080
I0524 11:27:47.335983   10966 node.go:587] Current confstate at 0x1: nodes:1 nodes:2 nodes:4 
W0524 11:27:47.336015   10966 node.go:555] Error while proposing conf change: raft: stopped
I0524 11:27:47.336020   10966 node.go:756] [0x4] Done joining cluster with err: raft: stopped
I0524 11:27:47.336058   10966 node.go:586] Trying to add 0x4 to cluster. Addr: correctip:5080
I0524 11:27:47.336063   10966 node.go:587] Current confstate at 0x1: nodes:1 nodes:2 nodes:4 
W0524 11:27:47.336072   10966 node.go:555] Error while proposing conf change: raft: stopped

this new Zero node Failed to join cluster.
4、restart new zero node, ./dgraph zero --wal dgraph/zw --replicas=3 –idx=4 --my=correctip:5080 --peer=leaderip:5080 --logtostderr --enable_sentry=false
this new Zero node successfully join the cluster!

I view zero log of notleaderip , has same error
I0524 11:37:47.336162 10966 node.go:586] Trying to add 0x4 to cluster. Addr: correctip:5080
I0524 11:37:47.336175 10966 node.go:587] Current confstate at 0x1: nodes:1 nodes:2 nodes:4
W0524 11:37:47.336191 10966 node.go:555] Error while proposing conf change: raft: stopped
I0524 11:37:47.336196 10966 node.go:756] [0x4] Done joining cluster with err: raft: stopped
I0524 11:37:47.336235 10966 node.go:586] Trying to add 0x4 to cluster. Addr: correctip:5080
I0524 11:37:47.336240 10966 node.go:587] Current confstate at 0x1: nodes:1 nodes:2 nodes:4
W0524 11:37:47.336249 10966 node.go:555] Error while proposing conf change: raft: stopped
I0524 11:37:47.336253 10966 node.go:756] [0x4] Done joining cluster with err: raft: stopped

I restart notleaderip node, get right!