apolloconfig / apollo-quick-start

Apollo Quick Start
692 stars 1.85k forks source link

怎么修改demo.sh #37

Closed Joe798 closed 3 years ago

Joe798 commented 5 years ago

https://github.com/nobodyiam/apollo-build-scripts#22-配置数据库连接信息 在上面写到:

注意:不要修改demo.sh的其它部分

需要修改 demo.sh 情况下如何修改? 例如,https://github.com/ctripcorp/apollo/wiki/分布式部署指南#14网络策略 写到的:

另外一种方式是直接指定要注册的IP,可以修改startup.sh,通过JVM System Property在运行时传入,如-Deureka.instance.ip-address=${指定的IP}

Joe798 commented 5 years ago

@nobodyiam

nobodyiam commented 5 years ago

可以修改SERVER_JAVA_OPTS

SERVER_JAVA_OPTS="$BASE_JAVA_OPTS -Dspring.profiles.active=github -Deureka.service.url=$eureka_service_url"
stale[bot] commented 3 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 3 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.