#*************** Spring Boot Related Configurations ***************#
### Default web context path:
server.servlet.contextPath=/nacos
### Default web server port:
server.port=8848
#*************** Network Related Configurations ***************#
### If prefer hostname over ip for Nacos server addresses in cluster.conf:
# nacos.inetutils.prefer-hostname-over-ip=false
### Specify local server's IP:
# nacos.inetutils.ip-address=
#*************** Config Module Related Configurations ***************#
### If user MySQL as datasource:
spring.datasource.platform=mysql
### Count of DB:
db.num=1
### Connect URL of DB:
db.url.0=jdbc:mysql://127.0.0.1:3306/nacos?serverTimezone=UTC&characterEncoding=utf8
db.user=root
db.password=123456
#*************** Naming Module Related Configurations ***************#
### Data dispatch task execution period in milliseconds:
# nacos.naming.distro.taskDispatchPeriod=200
### Data count of batch sync task:
# nacos.naming.distro.batchSyncKeyCount=1000
### Retry delay in milliseconds if sync task failed:
# nacos.naming.distro.syncRetryDelay=5000
初始化数据库,脚本位于conf目录下nacos-mysql.sql
启动nacos服务,在cmd中执行bin目录下startup.cmd:
D:\>cd nacos/bin
D:\nacos\bin>startup.cmd
,--.'|
,--,: : | Nacos 1.2.1
,`--.'`| ' : ,---. Running in stand alone mode, All function modules
| : : | | ' ,'\ .--.--. Port: 8848
: | \ | : ,--.--. ,---. / / | / / ' Pid: 20700
| : ' '; | / \ / \. ; ,. :| : /`./ Console: http://10.118.37.75:8848/nacos/index.html
' ' ;. ;.--. .-. | / / '' | |: :| : ;_
| | | \ | \__\/: . .. ' / ' | .; : \ \ `. https://nacos.io
' : | ; .' ," .--.; |' ; :__| : | `----. \
| | '`--' / / ,. |' | '.'|\ \ / / /`--' /
' : | ; : .' \ : : `----' '--'. /
; |.' | , .-./\ \ / `--'---'
'---' `--`---' `----'
2020-05-07 16:09:06,639 INFO Bean 'org.springframework.security.config.annotation.configuration.ObjectPostProcessorConfiguration' of type [org.springframework.security.config.annotation.configuration.ObjectPostProcessorConfiguration$$EnhancerBySpringCGLIB$$d2a494f3] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-05-07 16:09:06,713 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-05-07 16:09:06,715 INFO Bean 'org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler@2de56eb2' 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-05-07 16:09:06,717 INFO Bean 'org.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration' of type [org.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration$$EnhancerBySpringCGLIB$$f77937a5] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-05-07 16:09:06,721 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-05-07 16:09:07,176 INFO Tomcat initialized with port(s): 8848 (http)
2020-05-07 16:09:07,280 INFO Root WebApplicationContext: initialization completed in 2308 ms
2020-05-07 16:09:16,998 INFO Initializing ExecutorService 'applicationTaskExecutor'
2020-05-07 16:09:17,138 INFO Adding welcome page: class path resource [static/index.html]
2020-05-07 16:09:17,390 INFO Creating filter chain: Ant [pattern='/**'], []
2020-05-07 16:09:17,418 INFO Creating filter chain: any request, [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@163d04ff, org.springframework.security.web.context.SecurityContextPersistenceFilter@1698fc68, org.springframework.security.web.header.HeaderWriterFilter@56a4479a, org.springframework.security.web.csrf.CsrfFilter@565b064f, org.springframework.security.web.authentication.logout.LogoutFilter@53d1b9b3, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@207b8649, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@57eda880, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@7c209437, org.springframework.security.web.session.SessionManagementFilter@20a8a64e, org.springframework.security.web.access.ExceptionTranslationFilter@73163d48]
2020-05-07 16:09:17,502 INFO Exposing 2 endpoint(s) beneath base path '/actuator'
2020-05-07 16:09:17,528 INFO Initializing ExecutorService 'taskScheduler'
2020-05-07 16:09:17,639 INFO Tomcat started on port(s): 8848 (http) with context path '/nacos'
2020-05-07 16:09:17,645 INFO Nacos logs files: D:\nacos\logs\
2020-05-07 16:09:17,646 INFO Nacos conf files: D:\nacos\conf\
2020-05-07 16:09:17,646 INFO Nacos data files: D:\nacos\data\
2020-05-07 16:09:17,646 INFO Nacos started successfully in stand alone mode.
2020-05-07 16:09:17,851 INFO Initializing Servlet 'dispatcherServlet'
2020-05-07 16:09:17,858 INFO Completed initialization in 6 ms