consul启动命令

    技术2022-07-10  122

    1、重启 1.1、暂停 pid=$(ps aux | grep consul | awk 'NR==1'|awk '{print $2}') kill -9 $pid 1.2、启动 nohup ./consul agent -server -ui -bootstrap-expect=1 -data-dir=/tmp/consul -node=agent-one -bind=x.x.x.x -client=x.x.x.x & 2、以开发模式启动,k/v临时存储,重启后将丢失 nohup ./consul agent -dev -ui -node=consul-dev -client=x.x.x.x &

     

    Processed: 0.011, SQL: 9