Giter VIP home page Giter VIP logo

Comments (5)

nobodyiam avatar nobodyiam commented on May 14, 2024

@galenzhao 你是通过quick start中的build.sh启动的吗?

里面有一些参数是预先设置好的,建议还是通过build.sh启动

from apollo.

galenzhao avatar galenzhao commented on May 14, 2024

@nobodyiam
是的,是通过buildsh启动的,我看了这个shell,里边没有这个参数啊

from apollo.

nobodyiam avatar nobodyiam commented on May 14, 2024

@galenzhao 我们的代码是区分运行时profile的,上述的fat_titan_url参数只在ctrip profile才会被运行。
在quick start的build.sh里面应该能看到-Dspring.profiles.active=dev的,所以通过这个脚本执行的应该是不会尝试读取fat_titan_url的。。

from apollo.

galenzhao avatar galenzhao commented on May 14, 2024

@nobodyiam

+ 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.

galenzhao avatar galenzhao commented on May 14, 2024

没问题了,多了个‘

from apollo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.