原来使用的nacos版本是1.1.3,感觉版本有点低了,就想换个高点的。
将nacos版本换成1.4.1,点击启动,第一行显示"nacos is starting with cluster",然后启动失败。
失败原因:
“nacos is starting with cluster”,意为nacos以群集模式启动。于是,查了一下1.1.3到1.1.4的相关差异,得知1.4.1的默认启动模式是集群模式。而集群模式在没有进行集群配置的情况下,就会启动失败。
解决办法:将startup.cmd中的set MODE="cluster"修改为set MODE=“standalone”。
启动成功:
"nacos is starting with standalone"
,--.
,--.'|
,--,: : | Nacos 1.4.1
,`--.'`| ' : ,---. Running in stand alone mode, All function modules
| : : | | ' ,'\ .--.--. Port: 8848
: | \ | : ,--.--. ,---. / / | / / ' Pid: 34684
| : ' '; | / \ / \. ; ,. :| : /`./ Console: http://192.168.56.1:8848/nacos/index.html
' ' ;. ;.--. .-. | / / '' | |: :| : ;_
| | | \ | \__\/: . .. ' / ' | .; : \ \ `. https://nacos.io
' : | ; .' ," .--.; |' ; :__| : | `----. \
| | '`--' / / ,. |' | '.'|\ \ / / /`--' /
' : | ; : .' \ : : `----' '--'. /
; |.' | , .-./\ \ / `--'---'
'---' `--`---' `----'
2021-03-10 13:42:17,673 INFO Bean 'org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler@73a8da0f' 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)
2021-03-10 13:42:17,678 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)
2021-03-10 13:42:18,873 INFO Tomcat initialized with port(s): 8848 (http)
2021-03-10 13:42:19,352 INFO Root WebApplicationContext: initialization completed in 6993 ms
2021-03-10 13:42:24,663 INFO Initializing ExecutorService 'applicationTaskExecutor'
2021-03-10 13:42:24,784 INFO Adding welcome page: class path resource [static/index.html]
2021-03-10 13:42:25,373 INFO Creating filter chain: Ant [pattern='/**'], []
2021-03-10 13:42:25,421 INFO Creating filter chain: any request, [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@51684e4a, org.springframework.security.web.context.SecurityContextPersistenceFilter@5bbc9f97, org.springframework.security.web.header.HeaderWriterFilter@1734f68, org.springframework.security.web.csrf.CsrfFilter@345e5a17, org.springframework.security.web.authentication.logout.LogoutFilter@3d4d3fe7, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@41382722, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@2102a4d5, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@6ce1f601, org.springframework.security.web.session.SessionManagementFilter@5ed190be, org.springframework.security.web.access.ExceptionTranslationFilter@443dbe42]
2021-03-10 13:42:25,583 INFO Initializing ExecutorService 'taskScheduler'
2021-03-10 13:42:25,603 INFO Exposing 2 endpoint(s) beneath base path '/actuator'
2021-03-10 13:42:25,721 INFO Tomcat started on port(s): 8848 (http) with context path '/nacos'
2021-03-10 13:42:25,725 INFO Nacos started successfully in stand alone mode. use embedded storage