mac安装nacos
2021-08-26 本文已影响0人
Geroge1226
1、说明
nacos
支持集群,支持单节点,这里记录mac
单节点下nacos
安装
2、maca下安装
(1)下载 nacos
安装压缩包文件
https://github.com/alibaba/nacos/releases
(2)解压nacos
压缩包,终端切换到nacos
下的bin
目录
[lxx@lsyPro bin ]$ ll
total 40
-rwxr-xr-x@ 1 lxx staff 954B 5 14 2020 shutdown.cmd
-rwxr-xr-x@ 1 lxx staff 951B 3 18 11:36 shutdown.sh
-rwxr-xr-x@ 1 lxx staff 3.3K 6 18 10:39 startup.cmd
-rwxr-xr-x@ 1 lxx staff 4.9K 7 27 14:18 startup.sh
(3)终端输入启动 nacos:sh startup.sh -m standalone
[lxx@lsyPro bin ]$ sh startup.sh -m standalone
/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -Djava.ext.dirs=/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/jre/lib/ext:/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/ext -Xms512m -Xmx512m -Xmn256m -Dnacos.standalone=true -Dnacos.member.list= -Xloggc:/Users/lxx/Documents/software/nacos/logs/nacos_gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M -Dloader.path=/Users/lxx/Documents/software/nacos/plugins/health,/Users/lxx/Documents/software/nacos/plugins/cmdb -Dnacos.home=/Users/lxx/Documents/software/nacos -jar /Users/lxx/Documents/software/nacos/target/nacos-server.jar --spring.config.additional-location=file:/Users/lxx/Documents/software/nacos/conf/ --logging.config=/Users/lxx/Documents/software/nacos/conf/nacos-logback.xml --server.max-http-header-size=524288
nacos is starting with standalone
nacos is starting,you can check the /Users/lxx/Documents/software/nacos/logs/start.out
(4) 浏览器输入:http://127.0.0.1:8848/nacos/ 进入nacos
可视化界面
(5)输入账密:初始化账密都是
nacos
3、nacos安装补充说明
3.1 解压nacos目录说明
[lxxx@lsyPro nacos ]$ ll
- log nacos生成日志说明
- bin nacos服务相关脚本目录,
- conf nacos的配置文件目录
- target nacos的启动依赖目录
- data nacos自带apache-derby数据库,data存放数据内容