spring boot 启动方式

1、jar当下运行

java  -jar  demo-0.0.1-SNAPSHOT.jar

【windows环境】

C:\Users\dell\IdeaProjects\spring_eureka\target>java  -jar  eureka-server-1.0.jar
2019-05-15 19:45:51.885  INFO 14232 --- [           main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@3b192d32: startup date [Wed May 15 19:45:51 CST 2019]; root of context hierarchy
2019-05-15 19:45:52.404  INFO 14232 --- [           main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2019-05-15 19:45:52.496  INFO 14232 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'configurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$1678d74b] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

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

2019-05-15 19:45:53.340  INFO 14232 --- [           main] c.e.eureka.SpringEurekaApplication       : No active profile set, falling back to default profiles: default
2019-05-15 19:45:53.376  INFO 14232 --- [           main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@50b494a6: startup date [Wed May 15 19:45:53 CST 2019]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@3b192d32

【linux环境】

[root@smallsun shine]# java -jar eureka-server-1.0.jar 
2019-05-15 19:28:25.755  INFO 19691 --- [           main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@4aa8f0b4: startup date [Wed May 15 19:28:25 CST 2019]; root of context hierarchy
2019-05-15 19:28:26.067  INFO 19691 --- [           main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2019-05-15 19:28:26.129  INFO 19691 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'configurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$287c9a6c] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

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

2019-05-15 19:28:26.669  INFO 19691 --- [           main] c.e.eureka.SpringEurekaApplication       : No active profile set, falling back to default profiles: default
2019-05-15 19:28:26.696  INFO 19691 --- [           main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@2758fe70: startup date [Wed May 15 19:28:26 CST 2019]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@4aa8f0b4

2、jar后台运行

nohup  java  -jar  eureka-server-1.0.jar > eureka.log &

【linux环境】

[root@smallsun shine]# nohup java -jar eureka-server-1.0.jar  > eureka-server.log &
[1] 19801
[root@smallsun shine]# nohup: ignoring input and redirecting stderr to stdout

【进程】

[root@smallsun shine]# ps -ef|grep eureka-server
root     19801 19224 22 19:36 pts/4    00:00:29 java -jar eureka-server-1.0.jar
root     19879 19224  0 19:38 pts/4    00:00:00 grep --color=auto eureka-server

转载于:https://www.cnblogs.com/Small-sunshine/p/10852319.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值