本文介绍在 Windows 操作系统上安装 Alibaba Nacos 的方法与过程。
目录
- 版本说明
- 安装
- 运行
版本说明
- Windows 10
- Nacos 1.2.1
- JDK 8
安装
-
因为 Nacos 依赖 Java 环境运行,所以首先需要下载和配置 JDK,本示例使用 JDK 8(安装和配置过程略)。
-
下载 Alibaba Nacos,本示例使用
1.2.1
版本,下载文件是nacos-server-1.2.1.zip
。 -
解压缩到指定安装目录。
运行
- 输入
cmd
打开 Windows 命令提示符,进入 Nacos 根目录的bin
文件夹,执行启动命令startup.cmd -m standalone
。
D:\Dev\Nacos\nacos\bin>startup.cmd -m standalone
,--.
,--.'|
,--,: : | Nacos 1.2.1
,`--.'`| ' : ,---. Running in stand alone mode, All function modules
| : : | | ' ,'\ .--.--. Port: 8848
: | \ | : ,--.--. ,---. / / | / / ' Pid: 11056
| : ' '; | / \ / \. ; ,. :| : /`./ Console: http://10.62.58.79:8848/nacos/index.html
' ' ;. ;.--. .-. | / / '' | |: :| : ;_
| | | \ | \__\/: . .. ' / ' | .; : \ \ `. https://nacos.io
' : | ; .' ," .--.; |' ; :__| : | `----. \
| | '`--' / / ,. |' | '.'|\ \ / / /`--' /
' : | ; : .' \ : : `----' '--'. /
; |.' | , .-./\ \ / `--'---'
'---' `--`---' `----'
2020-04-26 16:31:46,476 INFO Bean 'org.springframework.security.config.annotation.configuration.ObjectPostProcessorConfiguration' of type [org.springframework.security.config.annotation.configuration.ObjectPostProcessorConfiguration$$EnhancerBySpringCGLIB$$9fb1143c] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-04-26 16:31:46,630 INFO Bean 'objectPostProcessor' of type [org.springframework.security.config.annotation.configuration.AutowireBeanFactoryObjectPostProcessor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-04-26 16:31:46,630 INFO Bean 'org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler@338fc1d8' 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)
2020-04-26 16:31:46,630 INFO Bean 'org.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration' of type [org.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration$$EnhancerBySpringCGLIB$$c485b6ee] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-04-26 16:31:46,646 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)
2020-04-26 16:31:47,738 INFO Tomcat initialized with port(s): 8848 (http)
2020-04-26 16:31:48,030 INFO Root WebApplicationContext: initialization completed in 5371 ms
2020-04-26 16:31:55,156 INFO Initializing ExecutorService 'applicationTaskExecutor'
2020-04-26 16:31:59,484 INFO Adding welcome page: class path resource [static/index.html]
2020-04-26 16:32:00,124 INFO Creating filter chain: Ant [pattern='/**'], []
2020-04-26 16:32:00,187 INFO Creating filter chain: any request, [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@664a9613, org.springframework.security.web.context.SecurityContextPersistenceFilter@2cab9998, org.springframework.security.web.header.HeaderWriterFilter@61078690, org.springframework.security.web.csrf.CsrfFilter@2f162cc0, org.springframework.security.web.authentication.logout.LogoutFilter@285d851a, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@669513d8, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@361c294e, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@5118388b, org.springframework.security.web.session.SessionManagementFilter@403132fc, org.springframework.security.web.access.ExceptionTranslationFilter@7c041b41]
2020-04-26 16:32:00,374 INFO Exposing 2 endpoint(s) beneath base path '/actuator'
2020-04-26 16:32:00,437 INFO Initializing ExecutorService 'taskScheduler'
2020-04-26 16:32:00,671 INFO Tomcat started on port(s): 8848 (http) with context path '/nacos'
2020-04-26 16:32:00,687 INFO Nacos logs files: D:\Dev\Nacos\nacos\logs\
2020-04-26 16:32:00,687 INFO Nacos conf files: D:\Dev\Nacos\nacos\conf\
2020-04-26 16:32:00,702 INFO Nacos data files: D:\Dev\Nacos\nacos\data\
2020-04-26 16:32:00,702 INFO Nacos started successfully in stand alone mode.
2020-04-26 16:32:00,905 INFO Initializing Servlet 'dispatcherServlet'
2020-04-26 16:32:00,921 INFO Completed initialization in 16 ms
- 打开浏览器,访问 http://127.0.0.1:8848/nacos 进入 Nacos 管理控制台,默认用户名 / 密码:nacos / nacos。
网友评论