日志-2021-9-13
RtZhao

SpringCloud

1 服务注册中心

  1. Eureka 停更不停用,老项目依旧维护中

  2. ZooKeeper 集合SpringCloud替换掉Eureka+Dubbo

    1. ZooKeeper 结点分类 临时结点、带序号的临时结点、持久结点、带序号的持久结点

    2. ```shell
      [root@localhost bin]# ./zkServer.sh start
      [root@localhost bin]# ./zkCli.sh

      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      12
      13
      14
      15
      16
      17
      18
      19
      20
      21
      22
      23
      24
      25
      26
      27
      28
      29
      30
      31
      32

      3. Zookeeper可以做集群




      ### Otherss

      **流程**:

      1. 建module
      2. 改pom
      3. 写ymal
      4. 主启动
      5. 业务类
      1. 建库、建表
      2. entities
      3. dao
      4. service
      5. controller



      **注意**:一定要注意端口是否前后一致



      **查看端口占用情况**

      ```shell
      netstat -aon|findstr "49157"
      tasklist|findstr "PID"
  • 本文标题:日志-2021-9-13
  • 本文作者:RtZhao
  • 创建时间:2021-09-13 08:08:07
  • 本文链接:https://www.rtzhao.site/2021/09/13/日志-2021-9-13/
  • 版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
 评论