微服务网关soul搭建

1.git clone https://github.com/Dromara/soul.git 源码

2.安装zk

3.刷入 源码目录scripts/下soul.sql到数据库

4.修改soul-admin目录下相关参数
微服务网关soul搭建_第1张图片

5.启动SoulAdminApplication ,访问http://localhost:8888/index.html 输入 admin /123456

微服务网关soul搭建_第2张图片

 

6.安装 soul server

  首先注释掉soul-bootstrap工程中不使用插件信息application-local,如下:

server:
  port: 9001
  address: 0.0.0.0

spring:
   main:
     allow-bean-definition-overriding: true
   application:
    name: soul-bootstrap
#   redis:
#    password: foobaredbbexONE123
#    timeout: 300000ms
#    sentinel:
#          master: mymaster
#          nodes:
#              - 192.168.1.91:26379
#              - 192.168.1.92:26379
#              - 192.168.1.93:26379
#   influxdb:
#        url: http://localhost:8086
#        username: test
#        password: test
#        database: test
#        retention-policy: autogen
#        connect-timeout: 10
#        read-timeout: 30
#        write-timeout: 10
   zookeeper:
        url : localhost:2181
        sessionTimeout: 5000
        connectionTimeout : 2000
soul:
    bufferSize: 4096
    timeVerify:
       timeDelay : 10
       enabled: false
#eureka:
#  instance:
#    leaseRenewalIntervalInSeconds: 10
#    leaseExpirationDurationInSeconds: 30
#  client:
#    serviceUrl:
#      defaultZone: http://eureka.didispace.com/eureka/


logging:
    level:
        root: info
        org.springframework.boot: info
        org.apache.ibatis: info
        org.dromara.soul.bonuspoint: info
        org.dromara.soul.lottery: debug
        org.dromara.soul: debug

    path: "./logs/web"

 

再注释掉该soul-bootstrap工程pom中如下





    
        soul
        org.dromara
        1.0.5-RELEASE
    
    4.0.0

    soul-bootstrap

    

        
            org.dromara
            soul-spring-boot-starter
        

        
            
            
            
        

        
            org.springframework.cloud
            spring-cloud-commons
            2.0.0.RELEASE
        

        
            org.springframework.boot
            spring-boot-starter-webflux
        

        
            org.projectreactor
            reactor-spring
            1.0.1.RELEASE
        

        
            org.springframework.boot
            spring-boot-starter-test
            test
        

    


    
        soul-bootstrap
        
            
                org.apache.maven.plugins
                maven-compiler-plugin
                
                    1.8
                    1.8
                    UTF-8
                
            
            
                org.springframework.boot
                spring-boot-maven-plugin
                
                    org.dromara.soul.bootstrap.SoulBootstrapApplication
                    true
                
            
            
            
                org.apache.maven.plugins
                maven-surefire-plugin
                
                    true
                
            
        
    

然后启动SoulBootstrapApplication !

###################结束

你可能感兴趣的:(架构设计,详说微服务的前世今生未来)