linux下启动springboot服务

Posted sunshine052697

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux下启动springboot服务相关的知识,希望对你有一定的参考价值。

错误日志

SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]

. ____ _ __ _ _
/\\ / ___‘_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | ‘_ | ‘_| | ‘_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
‘ |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v1.5.4.RELEASE)

2018-03-13 10:23:11.761 [localhost-startStop-1] INFOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - Starting ServletInitializer on localhost with PID 62429 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


 

2018-03-13 10:23:11.764 [localhost-startStop-1] INFO com.eyi.microservice.wx.ServletInitializer - The following profiles are active: test
2018-03-13 10:23:12.028 [localhost-startStop-1] INFO org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext - Refreshing org.springframework.boot[email protected]47fbf9f5: startup date [Tue Mar 13 10:23:12 CST 2018]; root of context hierarchy
2018-03-13 10:23:12.463 [background-preinit] INFO org.hibernate.validator.internal.util.Version - HV000001: Hibernate Validator 5.3.5.Final
2018-03-13 10:23:15.741 [localhost-startStop-1] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [META-INF/spring/internal/dubboContext.xml]


 

2018-03-13 10:23:20.235 [localhost-startStop-1-EventThread] INFO org.apache.curator.framework.state.ConnectionStateManager - State change: CONNECTED
2018-03-13 10:23:20.512 [localhost-startStop-1] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean ‘serviceRegistry‘ of type is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-03-13 10:23:20.676 [localhost-startStop-1] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean ‘spring.jms-org.springframework.boot.autoconfigure.jms.JmsProperties‘ of type [org.springframework.boot.autoconfigure.jms.JmsProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-03-13 10:23:20.685 [localhost-startStop-1] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean ‘org.springframework.boot.autoconfigure.jms.JmsAutoConfiguration$JmsTemplateConfiguration‘ of type [org.springframework.boot.autoconfigure.jms.JmsAutoConfiguration$JmsTemplateConfiguration$$EnhancerBySpringCGLIB$$26990f6b] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-03-13 10:23:20.706 [localhost-startStop-1] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean ‘org.springframework.boot.autoconfigure.jms.artemis.ArtemisConnectionFactoryConfiguration‘ of type [org.springframework.boot.autoconfigure.jms.artemis.ArtemisConnectionFactoryConfiguration$$EnhancerBySpringCGLIB$$96725478] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-03-13 10:23:20.774 [localhost-startStop-1] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean ‘spring.artemis-org.springframework.boot.autoconfigure.jms.artemis.ArtemisProperties‘ of type [org.springframework.boot.autoconfigure.jms.artemis.ArtemisProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-03-13 10:23:20.923 [localhost-startStop-1] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean ‘jmsConnectionFactory‘ of type [org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-03-13 10:23:20.957 [localhost-startStop-1] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean ‘org.springframework.boot.autoconfigure.jms.JmsAnnotationDrivenConfiguration$JndiConfiguration‘ of type [org.springframework.boot.autoconfigure.jms.JmsAnnotationDrivenConfiguration$JndiConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-03-13 10:23:20.977 [localhost-startStop-1] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean ‘destinationResolver‘ of type [org.springframework.jms.support.destination.JndiDestinationResolver] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-03-13 10:23:21.025 [localhost-startStop-1] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean ‘jmsTemplate‘ of type [org.springframework.jms.core.JmsTemplate] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-03-13 10:23:21.031 [localhost-startStop-1] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean ‘org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Generic‘ of type [org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Generic] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-03-13 10:23:21.399 [localhost-startStop-1] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean ‘spring.datasource-org.springframework.boot.autoconfigure.jdbc.DataSourceProperties‘ of type [org.springframework.boot.autoconfigure.jdbc.DataSourceProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-03-13 10:23:21.551 [localhost-startStop-1] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean ‘dataSource‘ of type is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-03-13 10:23:21.558 [localhost-startStop-1] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean ‘org.springframework.boot.autoconfigure.jdbc.JdbcTemplateAutoConfiguration‘ of type [org.springframework.boot.autoconfigure.jdbc.JdbcTemplateAutoConfiguration$$EnhancerBySpringCGLIB$$876385e7] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-03-13 10:23:21.630 [localhost-startStop-1] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean ‘jdbcTemplate‘ of type [org.springframework.jdbc.core.JdbcTemplate] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-03-13 10:23:21.654 [localhost-startStop-1] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean ‘org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration$RedisConfiguration‘ of type [org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration$RedisConfiguration$$EnhancerBySpringCGLIB$$ad21d684] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-03-13 10:23:21.748 [localhost-startStop-1] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean ‘spring.redis-org.springframework.boot.autoconfigure.data.redis.RedisProperties‘ of type [org.springframework.boot.autoconfigure.data.redis.RedisProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-03-13 10:23:21.798 [localhost-startStop-1] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean ‘org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration$RedisConnectionConfiguration‘ of type [org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration$RedisConnectionConfiguration$$EnhancerBySpringCGLIB$$fb797806] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-03-13 10:23:21.947 [localhost-startStop-1] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean ‘redisConnectionFactory‘ of type [org.springframework.data.redis.connection.jedis.JedisConnectionFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-03-13 10:23:22.027 [localhost-startStop-1] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean ‘redisTemplate‘ of type [org.springframework.data.redis.core.RedisTemplate] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-03-13 10:23:22.142 [localhost-startStop-1] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean ‘spring.jpa-org.springframework.boot.autoconfigure.orm.jpa.JpaProperties‘ of type [org.springframework.boot.autoconfigure.orm.jpa.JpaProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-03-13 10:23:22.162 [localhost-startStop-1] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean ‘org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration‘ of type [org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration$$EnhancerBySpringCGLIB$$fbf34c01] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-03-13 10:23:22.230 [localhost-startStop-1] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean ‘spring.transaction-org.springframework.boot.autoconfigure.transaction.TransactionProperties‘ of type [org.springframework.boot.autoconfigure.transaction.TransactionProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-03-13 10:23:22.234 [localhost-startStop-1] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean ‘platformTransactionManagerCustomizers‘ of type [org.springframework.boot.autoconfigure.transaction.TransactionManagerCustomizers] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-03-13 10:23:22.260 [localhost-startStop-1] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean ‘org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration‘ of type [org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration$$EnhancerBySpringCGLIB$$d105b517] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-03-13 10:23:22.356 [localhost-startStop-1] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean ‘org.springframework.boot.devtools.autoconfigure.DevToolsDataSourceAutoConfiguration‘ of type [org.springframework.boot.devtools.autoconfigure.DevToolsDataSourceAutoConfiguration$$EnhancerBySpringCGLIB$$4243602e] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-03-13 10:23:22.381 [localhost-startStop-1] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean ‘inMemoryDatabaseShutdownExecutor‘ of type [org.springframework.boot.devtools.autoconfigure.DevToolsDataSourceAutoConfiguration$NonEmbeddedInMemoryDatabaseShutdownExecutor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)


 

集群环境启动项目一直启动不了。最终找到原因是连不上数据库,但log中也不抛异常!!!!!

 


 




































以上是关于linux下启动springboot服务的主要内容,如果未能解决你的问题,请参考以下文章

linux下启动springboot服务

springboot启动流程 简单流程来了

本地用tomcat启动springboot项目没有问题,但是在linux服务器下启动报错。

SpringBoot之SpringApplication

springboot的一些理解

SpringBoot下Schdule的配置与使用