当前位置:网站首页>Nacos win10 安装配置教程
Nacos win10 安装配置教程
2022-07-26 16:13:00 【猎人在吃肉】
文章目录
1、Nacos 简介

1.1、Nacos 简介
Nacos 是阿里巴巴的产品,现在是SpringCloud中的一个组件。相比Eureka功能更加丰富,在国内受欢迎程度较高。
官网地址: https://nacos.io
1.2、下载安装包
Nacos 的安装包在 GitHub,可以下载源代码 或者 编译好的Nacos服务端。
GitHub主页:https://github.com/alibaba/nacos
GitHub的Release下载页:https://github.com/alibaba/nacos/releases
2、程序包目录说明

如上图所示,程序包目录:
- bin:启动脚本
- conf:配置文件
2.1、bin 目录(启动脚本)
bin 目录 中启动脚本分为 window 和 linux 启动与关闭脚本。

2.2、conf 目录(配置文件)
Nacos 配置相关的目录。

1)端口配置
Nacos的默认端口是8848, 如果更换默认端口,在 application.properties 中进行修改。如下图所示。

2)Nacos 在 win10 上的 日志输出是乱码
在 nacos-logback.xml 文件中将 CONSOLE 输出编码更改为 GBK 。如下图所示。

3、 启动(单机版)
nacos 启动模式有两种: cluster 集群模式 和 standalone 单机模式。
如果以单机模式启动,则有两种方式,
- 修改脚本文件的 启动模式为 standalone
- 命令模式启动时,指定模式为 standalone
3.1、修改脚本,以 standalone 单机模式启动
1)在 bin 目录的 startup.cmd 文件中,找到 MODE ,将其修复为 standalone 。

2) 双击 startup.cmd 即可启动。


3.2、命令模式启动时,指定模式为 standalone
在 bin 目录 打开 cmd , 输入 startup.cmd -m standalone ,回车,即可启动。
操作略
4、 登录Nacos 管理平台
Nacos 管理平台地址: http://127.0.0.1:8848/nacos (注意,默认端口是8848 ,如有变动,则使用最新端口号)
默认的用户名和密码都是 nacos 。

边栏推荐
- Clojure Web Development -- ring user guide
- Robot hand eye calibration ax=xb (eye to hand and eye in hand) and plane nine point calibration
- [RCTF2015]EasySQL
- [RCTF2015]EasySQL
- JVM 的类初始化机制
- Compiler analysis of clojure operation principle
- C # set different text watermarks for each page of word
- Sql语句——单行注释与多行注释
- Analyzing method and proc in Ruby
- 综合设计一个OPPE主页--布局与初始化
猜你喜欢

SQL statement -- single line comment and multi line comment

Application of workflow engine in vivo marketing automation
![[arm learning (9) ARM compiler understanding learning (armcc/armclang)]](/img/6c/df2ebb3e39d1e47b8dd74cfdddbb06.gif)
[arm learning (9) ARM compiler understanding learning (armcc/armclang)]
![[physical simulation] the principle and practice of the simplest shape matching](/img/1e/d91ed992bc648d90d0c68bfe541d7e.jpg)
[physical simulation] the principle and practice of the simplest shape matching

DTS搭载全新自研内核,突破两地三中心架构的关键技术|腾讯云数据库

vscode批量删除

2022年最新北京建筑安全员模拟题库及答案
![[BJDCTF2020]Easy MD5](/img/6a/61a4b5624c33f1f334bea344cfa2c8.png)
[BJDCTF2020]Easy MD5

操作系统迁移实战之在openEuler上部署MySQL数据库

TDengine 落地协鑫能科,数百亿数据压缩至 600GB
随机推荐
kubernetes之ReplicationController与ReplicaSet
Linux Installation mysql8.0.29 detailed tutorial
2022 test questions and answers for the latest national fire facility operator (senior fire facility operator)
Pat grade a 1050 string subtraction
[BJDCTF2020]Easy MD5
13 years of senior developers share a year of learning rust experience: from the necessary bibliography to code practice
综合设计一个OPPE主页--导航栏的设计
数字化转型怎么就那么的难?!
【ARM学习(9) arm 编译器了解学习(armcc/armclang)】
使用 ClojureScript 开发浏览器插件的过程与收获
First knowledge of OpenGL (4) link shader
PAT甲级 1049 Counting Ones
PAT甲级 1045 Favorite Color Stripe
Clojure 运行原理之编译器剖析
2022 latest Beijing Construction Safety Officer simulation question bank and answers
Understanding weight sharing in convolutional neural networks
vlang捣鼓之路
Operating system migration practice: deploying MySQL database on openeuler
TKE集群节点max-pod是如何配置的
综合设计一个OPPE主页--布局与初始化