windows环境nacos安装配置

发布时间 2023-11-23 19:19:26作者: 刀霸汉

1.官网下载地址: https://github.com/alibaba/nacos/releases

下载Assets下的zip包;

 

本地解压,目录结构: conf,bin,target;

2.查看conf/application.properties,可修改内部的server.port端口号,默认8848;

3.cmd命令到bin目录,执行如下命令启动nacos(默认为集群启动,本次为单机启动)

startup.cmd -m standalone

 看到如下图形和日志信息"Nacos started successfully in stand alone mode"即启动成功;

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

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

2023-11-23 19:07:31,186 INFO Tomcat initialized with port(s): 8848 (http)

2023-11-23 19:07:31,507 INFO Root WebApplicationContext: initialization completed in 3083 ms

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.alipay.sofa.jraft.util.internal.UnsafeUtil (jar:file:/D:/tools/nacos/target/nacos-server.jar!/BOOT-INF/lib/jraft-core-1.3.12.jar!/) to field java.nio.Buffer.address
WARNING: Please consider reporting this to the maintainers of com.alipay.sofa.jraft.util.internal.UnsafeUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2023-11-23 19:07:36,952 INFO Adding welcome page: class path resource [static/index.html]

2023-11-23 19:07:37,375 WARN You are asking Spring Security to ignore Ant [pattern='/**']. This is not recommended -- please use permitAll via HttpSecurity#authorizeHttpRequests instead.

2023-11-23 19:07:37,376 INFO Will not secure Ant [pattern='/**']

2023-11-23 19:07:37,400 INFO Will secure any request with [org.springframework.security.web.session.DisableEncodeUrlFilter@dbddbe3, org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@7a83ccd2, org.springframework.security.web.context.SecurityContextPersistenceFilter@29f3c438, org.springframework.security.web.header.HeaderWriterFilter@798cb6d9, org.springframework.security.web.csrf.CsrfFilter@2fe2965c, org.springframework.security.web.authentication.logout.LogoutFilter@6f731759, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@5dbbb292, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@587c5c1, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@44aa2e13, org.springframework.security.web.session.SessionManagementFilter@2abafa97, org.springframework.security.web.access.ExceptionTranslationFilter@3375ebd3]

2023-11-23 19:07:37,434 INFO Exposing 1 endpoint(s) beneath base path '/actuator'

2023-11-23 19:07:37,498 INFO Tomcat started on port(s): 8848 (http) with context path '/nacos'

2023-11-23 19:07:37,527 INFO Nacos started successfully in stand alone mode. use embedded storage

4.控制台

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