zoukankan      html  css  js  c++  java
  • java ee config / nacos / shit Alibaba Middleware

    s

    Quick Start for Nacos

    https://nacos.io/zh-cn/docs/deployment.html

    https://nacos.io/en-us/docs/quick-start.html

    This topic is about how to set up and use Nacos.

    0.Choose Version

    You can see the introduction of each version at release notes or blog, the current recommended version is 2.0.3.

    1.Prerequisites

    Before you begin, install the following:

    1. 64bit OS: Linux/Unix/Mac/Windows supported, Linux/Unix/Mac recommended.
    2. 64bit JDK 1.8+: downloadsJAVA_HOME settings.
    3. Maven 3.2.x+: downloadssettings.

    2.Download & Build from Release

    There are two ways to get Nacos.

    1)Download source code from Github

    git clone https://github.com/alibaba/nacos.git
    cd nacos/
    mvn -Prelease-nacos -Dmaven.test.skip=true clean install -U 
    ls -al distribution/target/
    
    // change the $version to your actual path
    cd distribution/target/nacos-server-$version/nacos/bin
    

    2)Download run package

    Select the latest stable version from https://github.com/alibaba/nacos/releases

      unzip nacos-server-$version.zip  OR tar -xvf nacos-server-$version.tar.gz
      cd nacos/bin
    

    3.Start Server

    Linux/Unix/Mac

    Run the following command to start(standalone means non-cluster mode):

    sh startup.sh -m standalone

    If you are using a ubuntu system, or encounter this error message [[symbol not found, try running as follows:

    bash startup.sh -m standalone

    Windows

    Run the following command to start(standalone means non-cluster mode):

    cmd startup.cmd -m standalone

    4.Service & Configuration Management

    Service registration

    curl -X POST 'http://127.0.0.1:8848/nacos/v1/ns/instance?serviceName=nacos.naming.serviceName&ip=20.18.7.10&port=8080'

    Service discovery

    curl -X GET 'http://127.0.0.1:8848/nacos/v1/ns/instance/list?serviceName=nacos.naming.serviceName'

    Publish config

    curl -X POST "http://127.0.0.1:8848/nacos/v1/cs/configs?dataId=nacos.cfg.dataId&group=test&content=helloWorld"

    Get config

    curl -X GET "http://127.0.0.1:8848/nacos/v1/cs/configs?dataId=nacos.cfg.dataId&group=test"

    5.Shutdown Servers

    Linux/Unix/Mac

    sh shutdown.sh

    Windows

    cmd shutdown.cmd

    Or click the shutdown.cmd file operation.

    end

  • 相关阅读:
    左侧导航太长了?
    组织结构配置文件的诡异行为
    SharePoint上无法显示Lync的在线状态
    多语言和自定义CSS
    文档库下载副本,文件名被截断
    在线menu生成网站
    FC7崩溃,安装Ubuntu,相当不错的系统
    简易下载baidu音乐排行榜音乐
    java放射调用静态方法和构造函数
    升级到Ubuntu7.10导致Eclipse中键盘无效的问题
  • 原文地址:https://www.cnblogs.com/lindows/p/15423914.html
Copyright © 2011-2022 走看看