一、下载工程包
    http://dev.manateeai.com/biz/image/lowcode.tar.gz

    如果在机器上下载

    1. wget http://dev.manateeai.com/biz/image/lowcode.tar.gz
    2. tar -xvf lowcode.tar.gz

    结构说明:
    image.png
    jar 下面包含了
    wangfa和wangcai 打包文件
    config 包含了两个应用运行配置文件
    start_wangcai.sh 和 start_wangfa.sh 为运行脚本

    二、配置中心
    1)安装nacos
    最新版本

    1. wget https://github.com/alibaba/nacos/releases/download/2.0.0-bugfix/nacos-server-2.0.0.tar.gz
    2. tar -xvf nacos-server-2.0.0.tar.gz
    3. cd nacos/bin
    4. sh startup.sh -m standalone

    2)配置nacos
    http://{yourIp}:8848/
    账号密码 nacos /nacos
    新建配置
    wangfa-daily.yaml

    1. spring:
    2. servlet:
    3. multipart:
    4. enabled: true
    5. file-size-threshold: 2KB
    6. max-file-size: 200MB
    7. max-request-size: 215MB
    8. redis:
    9. password: {password}
    10. host: {yourIp}
    11. port: 6379
    12. datasource:
    13. type: com.zaxxer.hikari.HikariDataSource
    14. driver-class-name: com.mysql.cj.jdbc.Driver
    15. username: root
    16. password: {password}
    17. url: jdbc:mysql://{yourIp}:3306/wangfa?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&allowMultiQueries=true
    18. manatee:
    19. file:
    20. imageLocalPath: /home/admin/image/
    21. imageReturnPath: /biz/image/
    22. default:
    23. redis:
    24. db: 6
    25. security:
    26. ignore:
    27. urls: /,/error,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/**/*.csv,/**/*.xls,/**/*.xlsx,/biz/module/**,/biz/customizeModule.do,/biz/block/**,/biz/moduleChart/**,/biz/uploadFile*,/biz/license.do

    image.png

    wangcai-daily.yaml

    1. spring:
    2. servlet:
    3. multipart:
    4. enabled: true
    5. file-size-threshold: 2KB
    6. max-file-size: 200MB
    7. max-request-size: 215MB
    8. feign:
    9. client:
    10. config:
    11. default:
    12. connectTimeout: 5000
    13. readTimeout: 5000
    14. loggerLevel: basic
    15. hystrix:
    16. enabled: true
    17. redis:
    18. password: {password}
    19. host: {yourIp}
    20. port: 6379
    21. datasource:
    22. type: com.zaxxer.hikari.HikariDataSource
    23. driver-class-name: com.mysql.cj.jdbc.Driver
    24. username: root
    25. password: {password}
    26. url: jdbc:mysql://{yourIp}:3306/wangfa?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&allowMultiQueries=true
    27. manatee:
    28. default:
    29. redis:
    30. db: 6
    31. ribbon:
    32. eager-load:
    33. enabled: true
    34. clients: wangcai
    35. security:
    36. ignore:
    37. urls: /,/error,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/**/*.csv,/**/*.xls,/**/*.xlsx,/biz/module/*

    image.png

    3)修改config下对应文件
    image.png

    image.png
    对应的ip和前面MD5生成的namespace

    四、前端设置
    确保已经安装nginx
    nginx配置
    地址根据自己实际地址

    1. server {
    2. listen 80;
    3. server_name {域名或者ip};
    4. location / {
    5. root /home/admin/lowcode/front;
    6. index index.html;
    7. try_files $uri $uri/ /index.html;
    8. }
    9. location /biz {
    10. proxy_intercept_errors on;
    11. proxy_pass http://{yourIp}:8103;
    12. proxy_set_header Host $host:$server_port;
    13. proxy_set_header X-Real-IP $remote_addr;
    14. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    15. }
    16. }
    17. •

    五、其他依赖安装
    mysql
    redis

    六、运行
    sh 运行以下脚本
    image.png