apolloconfig / apollo-quick-start

Apollo Quick Start
692 stars 1.85k forks source link

想实现adminservice和configservice分离启动,并自定义端口 #87

Closed WIN233 closed 2 years ago

WIN233 commented 2 years ago

有两个地方不明白

  1. apollo-portal.conf和apollo-service.conf是如何工作的?我翻了master分支的源码,并没有找到相关代码。
  2. demo.sh 中start和stop传递给jar,这两个参数是如何工作的?我在com.ctrip.framework.apollo.assembly.ApolloApplication方法中也没找到处理这两个命令行参数的代码。我通过apollo-assembly打包出来的jar执行java -jar apollo-assembly-1.9.1.jar stop实现的效果是启动容器,并没有像这个shell一样可以实现停止服务。
WIN233 commented 2 years ago

还有个问题,apollo-portal.conf和apollo-service.conf中的MODE=service这个参数是怎么做到让程序后台运行的?有相关的代码能贴给我吗,非常感谢

WIN233 commented 2 years ago

不好意思,打扰了,已经找到答案了。有同样困惑的朋友可以参考这个链接,是springboot的maven插件实现的 https://docs.spring.io/spring-boot/docs/current/maven-plugin/reference/htmlsingle/

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had activity in the last 21 days. It will be closed in 7 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions.

stale[bot] commented 2 years ago

This issue has been automatically closed because it has not had activity in the last 7 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted". Thank you for your contributions.