etcd
Contents
install
brew install etcd
可在 service list 確認是否正常
brew services list
# results
etcd started yakushou730 ~/Library/LaunchAgents/homebrew.mxcl.etcd.plist
操作
安裝完後系統會有 etcdctl 的指令可以使用
寫入
etcdctl put foo bar
讀取
etcdctl get foo
# result
foo
bar
# 另一個範例
etcdctl get product.rpc --prefix
# result
product.rpc/7587860940551895303
192.168.0.221:8081
刪除
etcdctl del foo
# result
1