mac安装nacos

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
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容