Skip to content

项目部署

刘兆明 edited this page Apr 9, 2018 · 2 revisions

这里特别感谢 QQ 金宝宝 1771717896 提供的服务器

准备环境

  1. 安装虚拟机
  2. 安装项目运行环境
  3. 配置host文件
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

配置 spring cloud 配置中心

http://blog.paascloud.net/2018/03/26/springcloud/config/springcloud-config-encrypt/
  1. fork 项目 paascloud-config-repo paascloud-config-repo
  2. 修改配置中心git地址, 如果使用私有地址请配置用户名密码
  3. 修改第一步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. 剩下微服务无启动数序要求
Clone this wiki locally