执行如下命令之后,
java -jar /opt/server/jar/springcloud-config-0.0.1-SNAPSHOT.jar --spring.config.location=/opt/server/config/application-config-8889.properties > /opt/server/logs/catalina_config1.out 2>&1 &
成功启动,然后xshell直接点击x,而不是exit命令退出,项目会自动停止,
重新通过xshell登录查看日志,
ationConfigEmbeddedWebApplicationContext : Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@1d8d30f7: startup date [Thu May 30 10:24:58 CST 2019]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@75828a0f
2019-05-30 10:25:49.553 INFO 24918 --- [ Thread-7] o.s.c.n.e.s.EurekaServiceRegistry : Unregistering application config-center with eureka with status DOWN
2019-05-30 10:25:49.553 WARN 24918 --- [ Thread-7] com.netflix.discovery.DiscoveryClient : Saw local status change event StatusChangeEvent [t