nacos安装

1.github下载安装包

https://github.com/alibaba/nacos/releases/download/2.0.3/nacos-server-2.0.3.zip

2.启动命令

安装包解压后,使用命令窗口进入bin目录,执行以下命令:
standalone代表着单机模式运行,
非集群模式:

startup.cmd -m standalone

3.停止命令

shutdown.cmd

4.启动日志

D:\nacos-server-2.1.0\nacos>cd bin

D:\nacos-server-2.1.0\nacos\bin>startup.cmd -m standalone
"nacos is starting with standalone"

         ,--.
       ,--.'|
   ,--,:  : |                                           Nacos 2.1.0
,`--.'`|  ' :                       ,---.               Running in stand alone mode, All function modules
|   :  :  | |                      '   ,'\   .--.--.    Port: 8848
:   |   \ | :  ,--.--.     ,---.  /   /   | /  /    '   Pid: 18684
|   : '  '; | /       \   /     \.   ; ,. :|  :  /`./   Console: http://192.168.239.1:8848/nacos/index.html
'   ' ;.    ;.--.  .-. | /    / ''   | |: :|  :  ;_
|   | | \   | \__\/: . ..    ' / '   | .; : \  \    `.      https://nacos.io
'   : |  ; .' ," .--.; |'   ; :__|   :    |  `----.   \
|   | '`--'  /  /  ,.  |'   | '.'|\   \  /  /  /`--'  /
'   : |     ;  :   .'   \   :    : `----'  '--'.     /
;   |.'     |  ,     .-./\   \  /            `--'---'
'---'        `--`---'     `----'

2022-07-27 01:06:29,656 INFO Bean 'org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler@6940f685' of type [org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2022-07-27 01:06:29,681 INFO Bean 'methodSecurityMetadataSource' of type [org.springframework.security.access.method.DelegatingMethodSecurityMetadataSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2022-07-27 01:06:34,049 INFO Tomcat initialized with port(s): 8848 (http)

2022-07-27 01:06:36,422 INFO Root WebApplicationContext: initialization completed in 23084 ms

5.访问路径

从启动日志中可以看到访问地址:

http://192.168.239.1:8848/nacos/index.html

用户名:nacos
密码:nacos

https://nacos.io/zh-cn/docs/quick-start.html

posted @ 2022-07-27 01:13  使用D  阅读(136)  评论(0编辑  收藏  举报