1、说明
nacos
:一个更易于构建云原生应用的动态服务发现、配置管理和服务管理平台。
官网文档:https://nacos.io/docs/latest/what-is-nacos/
2、安装步骤
1、下载免安装包github:https://github.com/alibaba/nacos
(1)找到基线版本标签
![](https://img.haomeiwen.com/i10817794/4830b4ca615f84fe.png)
(2)点击downloads
![](https://img.haomeiwen.com/i10817794/1b8f3149c5bc5f79.png)
(3)滑动到最下方找打免安装压缩包
![](https://img.haomeiwen.com/i10817794/96eb9061866aa5c3.png)
2、下载完成,解压软件包,得到下图所示。
![](https://img.haomeiwen.com/i10817794/61e487c779357572.png)
3、启动nacos
启动命令(standalone代表着单机模式运行,非集群模式):
sh startup.sh -m standalone
控制台看到
...省略部分日志
-http-header-size=524288
nacos is starting with cluster
nacos is starting. you can check the /Users/xxx/Documents/nacos/nacos/logs/start.out
4、浏览器访问 localhost:8848/nacos
![](https://img.haomeiwen.com/i10817794/4429a44ccee847f4.png)
3、配置nacos
配置文件路径
![](https://img.haomeiwen.com/i10817794/a0e04522f76d16e4.png)
访问端口,默认
8848
,访问路径默认nacos
### Default web context path:
server.servlet.contextPath=/nacos
### Include message field
server.error.include-message=ALWAYS
### Default web server port:
server.port=8848
网友评论