码迷,mamicode.com
首页 > 其他好文 > 详细

Consul 启动命令

时间:2016-10-21 01:11:48      阅读:635      评论:0      收藏:0      [点我收藏+]

标签:

  • 服务端:
    nohup consul agent -server -bootstrap-expect 1 -config-dir /etc/consul.d/ -data-dir /var/opt/consul -bind=121.42.204.73 >> /var/opt/consul/consul.log 2>&1 

    注册服务:

    curl -X PUT -d ‘{"type":"locationService","outPort":8081,"outPath":"/websocket", "forwardAddress":"121.42.204.73", "forwardPort":"8081"}‘ http://localhost:8500/v1/kv/websocket/my

    webui添加:http://localhost:8500/ui

    -client 0.0.0.0 -ui
  • 客户端:
    nohup consul agent -config-dir /etc/consul.d/ -data-dir /var/opt/consul -bind=121.42.204.73 -join=121.42.204.73 >consul.log 2>&1 &

     

Consul 启动命令

标签:

原文地址:http://www.cnblogs.com/niejunlei/p/5982911.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!