Comments (5)
@galenzhao 你是通过quick start中的build.sh启动的吗?
里面有一些参数是预先设置好的,建议还是通过build.sh启动
from apollo.
@nobodyiam
是的,是通过buildsh启动的,我看了这个shell,里边没有这个参数啊
from apollo.
@galenzhao 我们的代码是区分运行时profile的,上述的fat_titan_url参数只在ctrip profile才会被运行。
在quick start的build.sh里面应该能看到-Dspring.profiles.active=dev
的,所以通过这个脚本执行的应该是不会尝试读取fat_titan_url的。。
from apollo.
+ echo '==== starting service ===='
==== starting service ====
+ export 'JAVA_OPTS=-Denv=dev -Ddev_meta=http://localhost:8080 -Dspring.profiles.active=dev -Deureka.service.url=http://localhost:8080/eureka/ -Dspring.datasource.url=jdbc:mysql://localhost:3306/ApolloConfigDB?characterEncoding=utf8 -Dspring.datasource.username=root -Dspring.datasource.password='
+ JAVA_OPTS='-Denv=dev -Ddev_meta=http://localhost:8080 -Dspring.profiles.active=dev -Deureka.service.url=http://localhost:8080/eureka/ -Dspring.datasource.url=jdbc:mysql://localhost:3306/ApolloConfigDB?characterEncoding=utf8 -Dspring.datasource.username=root -Dspring.datasource.password='
+ [[ -f ./service/apollo-service.jar ]]
+ rm -rf ./service/apollo-service.jar
+ ln apollo-all-in-one.jar ./service/apollo-service.jar
+ chmod a+x ./service/apollo-service.jar
+ java '-Denv=dev -Ddev_meta=http://localhost:8080 -Dspring.profiles.active=dev -Deureka.service.url=http://localhost:8080/eureka/ -Dspring.datasource.url=jdbc:mysql://localhost:3306/ApolloConfigDB?characterEncoding=utf8 -Dspring.datasource.username=root -Dspring.datasource.password=' -jar ./service/apollo-service.jar start --configservice --adminservice
我看shell带了这个参数,
from apollo.
没问题了,多了个‘
from apollo.
Related Issues (20)
- Add more observability in apollo config client HOT 2
- 请教 Bash 脚本如何请求开启了访问密钥的配置项 HOT 6
- apollo.meta; nested exception is java.net.UnknownHostException: apollo.meta HOT 5
- When is the 2.3.0 release scheduled? HOT 2
- Portal 模块 RestTemplate 支持配置 ConnectionTimeToLive
- apollo2.1.0集成pgsql,求给一份pgsql的sql文件。mysql的不可以用 HOT 3
- 无法删除旧的配置 HOT 5
- 在项目namespace数量比较多的情况下(大约1000个),打开页面加载速度很慢,比较影响用户体验,这个是否有什么优化改进方案? HOT 7
- Apollo是否可以支持按照key维度来发布? HOT 2
- 1.8.0,接入一个app.id 使用多个namespace的时候,多个namesapce均开启了accesskey.sercet,这时候接入的配置代码要怎么写呢 HOT 3
- OidcLocalUserService throw an Exception when executing createLocalUser in OIDC profile HOT 6
- 麻烦问下,有什么办法能同时读到多个环境同一个配置的值吗? HOT 3
- 使用客户端添加string类型的配置项时会报错 HOT 1
- 配置从 2.1.0导出,导入到 2.2.0,数据中时间解析失败 HOT 1
- 在 apollo-portal统一增加访问路径的前缀/apollo 时,导入配置的请求url 有部分没有添加前缀 HOT 1
- apollo-portal 使用统一前缀/apollo以后,创建集群失败 HOT 1
- k8s部署apollo 接入ldap报错 HOT 1
- 请问有大佬已经在2.2.0版本上,数据源由mysql切换至pg了嘛? HOT 1
- 脚本启动与停止的问题 HOT 1
- 删除App后,相似的AppID权限异常,并无法恢复 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apollo.