mac安装nacos

2024-03-13  本文已影响0人  Geroge1226

1、说明

nacos:一个更易于构建云原生应用的动态服务发现、配置管理和服务管理平台。
官网文档:https://nacos.io/docs/latest/what-is-nacos/

2、安装步骤

1、下载免安装包github:https://github.com/alibaba/nacos

(1)找到基线版本标签

image.png

(2)点击downloads

image.png

(3)滑动到最下方找打免安装压缩包

image.png
2、下载完成,解压软件包,得到下图所示。
image.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
image.png

3、配置nacos

配置文件路径

image.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
上一篇 下一篇

猜你喜欢

热点阅读