1.说明
为了方便本地开发测试代码,
可以下载Windows版本的nacos,
下载地址:
https://github.com/alibaba/nacos/releases/download/2.0.3/nacos-server-2.0.3.zip
2.启动命令
安装包解压后,执行如下CMD脚本,
standalone代表着单机模式运行,
非集群模式:
startup.cmd -m standalone
3.停止命令
shutdown.cmd
或者双击shutdown.cmd运行文件。
4.访问路径
后台的访问路径为:
http://localhost:8848/nacos
nacos的根路径为/nacos,
默认端口号为8848。因此
nacos用户名密码:
nacos/nacos
5.启动日志
C:\Program Develop\Nacos\nacos-server-2.0.0\nacos\bin>startup.cmd -m standalone
"nacos is starting with standalone"
,--.
,--.'|
,--,: : | Nacos 2.0.0
,`--.'`| ' : ,---. Running in stand alone mode, All function modules
| : : | | ' ,'\ .--.--. Port: 8848
: | \ | : ,--.--. ,---. / / | / / ' Pid: 20952
| : ' '; | / \ / \. ; ,. :| : /`./ Console: http://192.168.171.1:8848/nacos/index.html
' ' ;. ;.--. .-. | / / '' | |: :| : ;_
| | | \ | \__\/: . .. ' / ' | .; : \ \ `. https://nacos.io
' : | ; .' ," .--.; |' ; :__| : | `----. \
| | '`--' / / ,. |' | '.'|\ \ / / /`--' /
' : | ; : .' \ : : `----' '--'. /
; |.' | , .-./\ \ / `--'---'
'---' `--`---' `----'
2022-05-30 20:22:39,560 INFO Bean 'org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler@1af05b03' 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-05-30 20:22:39,567 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-05-30 20:22:40,873 INFO Tomcat initialized with port(s): 8848 (http)
2022-05-30 20:22:41,647 INFO Root WebApplicationContext: initialization completed in 28073 ms
2022-05-30 20:22:53,032 INFO Initializing ExecutorService 'applicationTaskExecutor'
2022-05-30 20:22:53,190 INFO Adding welcome page: class path resource [static/index.html]
2022-05-30 20:22:54,412 INFO Creating filter chain: Ant [pattern='/**'], []
2022-05-30 20:22:54,476 INFO Creating filter chain: any request, [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@5e048149, org.springframework.security.web.context.SecurityContextPersistenceFilter@6d303498, org.springframework.security.web.header.HeaderWriterFilter@55d9b8f0, org.springframework.security.web.csrf.CsrfFilter@fb6097b, org.springframework.security.web.authentication.logout.LogoutFilter@29eda4f8, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@3419e23b, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@4fc142ec, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@79d9214d, org.springframework.security.web.session.SessionManagementFilter@43d38654, org.springframework.security.web.access.ExceptionTranslationFilter@1290c49]
2022-05-30 20:22:54,986 INFO Initializing ExecutorService 'taskScheduler'
2022-05-30 20:22:55,009 INFO Exposing 16 endpoint(s) beneath base path '/actuator'
2022-05-30 20:22:55,212 INFO Tomcat started on port(s): 8848 (http) with context path '/nacos'
2022-05-30 20:22:55,223 INFO Nacos started successfully in stand alone mode. use embedded storage
2022-05-30 20:23:33,951 INFO Initializing Servlet 'dispatcherServlet'
2022-05-30 20:23:33,966 INFO Completed initialization in 14 ms
网友评论