这里特别感谢 QQ 金宝宝 1771717896 提供的服务器
准备环境
windows 目录 C:\Windows\System32\drivers\etc\hosts
mac/linux 地址 /etc/hosts
下面的ip注意修改为自己虚拟机对应的ip地址
127.0.0.1 dev-login.paascloud.net
127.0.0.1 dev-admin.paascloud.net
127.0.0.1 dev-api.paascloud.net
127.0.0.1 dev-mall.paascloud.net
127.0.0.1 paascloud-discovery
127.0.0.1 paascloud-eureka
127.0.0.1 paascloud-gateway
127.0.0.1 paascloud-monitor
127.0.0.1 paascloud-zipkin
127.0.0.1 paascloud-provider-uac
127.0.0.1 paascloud-provider-mdc
127.0.0.1 paascloud-provider-omc
127.0.0.1 paascloud-provider-opc
192.168.241.21 paascloud-db-mysql
192.168.241.21 paascloud-db-redis
192.168.241.21 paascloud-mq-rabbit
192.168.241.21 paascloud-mq-rocket
192.168.241.21 paascloud-provider-zk
192.168.241.101 paascloud-zk-01
192.168.241.102 paascloud-zk-02
192.168.241.103 paascloud-zk-03
http://blog.paascloud.net/2018/03/29/springcloud/nexus/maven-nexus-use/
https://github.com/paascloud/elastic-job-lite-starter-master
配置 spring cloud 配置中心
http://blog.paascloud.net/2018/03/26/springcloud/config/springcloud-config-encrypt/
- fork 项目 paascloud-config-repo
- 修改配置中心git地址, 如果使用私有地址请配置用户名密码
- 修改第一步fork来的项目的application-dev.yml 配置文件配置文件
paascloud:
mail:
username: 'your email address'
password: 'your email password'
aliyun:
key:
accessKeyId: 'your aliyun accessKeyId'
accessKeySecret: 'your aliyun accessKeySecret'
sms:
product: 'your sms product'
qiniu:
key:
accessKey: 'your qiniu accessKey'
secretKey: 'your qiniu secretKey'
oss:
privateHost: 'your qiniu oss private host'
publicHost: 'your qiniu oss public host'
微服务启动顺序
1. paascloud-eureka
2. paascloud-discovery
3. paascloud-provider-uac
4. paascloud-gateway
5. 剩下微服务无启动数序要求
我的开源项目
- github: https://github.com/paascloud/paascloud-master
- 码云:https://gitee.com/paascloud/paascloud-master
如果觉得本文对您有帮助, 空闲的时候点帮忙加个星星, 您的支持将鼓励我继续创作的动力!