nacos笔记

tech2025-05-06  4

【1】nacos server 【2】nacos spring 【3】Nacos Spring Boot 【4】Nacos Spring Cloud 【5】Nacos Config 【6】Nacos discovery 【7】nacos 部署 【8】常见问题

【1】nacos server nacos文档

1.源码部署 git clone https://github.com/alibaba/nacos.git cd nacos/ mvn -Prelease-nacos clean install -U ls -al distribution/target/ // change the $version to your actual path cd distribution/target/nacos-server-$version/nacos/bin 2.二进制包部署 https://github.com/alibaba/nacos/releases unzip nacos-server-$version.zip 或者 tar -xvf nacos-server-$version.tar.gz cd nacos/bin 3.启动 startup.sh -m standalone startup.cmd 浏览器访问:http://127.0.0.1:8848/nacos/index.html ,默认的账号密码为nacos/nacos 4.停止 shutdown.sh shutdown.cmd 5.服务注册&发现和配置管理 #服务注册 curl -X POST 'http://127.0.0.1:8848/nacos/v1/ns/instance?serviceName=nacos.naming.serviceName&ip=20.18.7.10&port=8080' #服务发现 c
最新回复(0)