首页 > 其他 > 详细

Consul 启动命令

时间:2016-10-21 01:10:21      阅读:870      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!