摘要: 拉取镜像 docker pull redis 构建redis容器 #--appendonly yes 开启持久化 #--requirepass "123456" 设置redis密码 docker run -d -p 6379:6379 --name redis --privileged=true - 阅读全文
posted @ 2025-01-18 15:58 kele-cc 阅读(21) 评论(0) 推荐(0)
摘要: 拉取镜像 docker pull nacos/nacos-server #mac m1芯片需用arm64包 docker pull nacos/nacos-server:v2.1.2-slim 其他包参考docker nacos镜像仓库 构建nacos容器 #-e MODE=standalone 单 阅读全文
posted @ 2025-01-18 15:14 kele-cc 阅读(40) 评论(0) 推荐(0)
摘要: 在搭建微服务时,很多配置都是一样的。这个时候可以把这些配置拿出来做成公共配置,服务单独使用的做成私有配置 > 目前的项目结构 ![image](https://img2023.cnblogs.com/blog/2235711/202307/2235711-20230723165828329-1852 阅读全文
posted @ 2023-07-23 17:06 kele-cc 阅读(165) 评论(0) 推荐(0)
摘要: > 当外键关系设计不为主键Id时(一般不这样设计) `LibraryEntity` ```CSharp using Volo.Abp.Domain.Entities; namespace Product.Domain.Entity; public class LibraryEntity : Aggr 阅读全文
posted @ 2023-07-23 15:03 kele-cc 阅读(69) 评论(0) 推荐(0)
摘要: 在上一篇.Net6基于IdentityServer4配置服务授权以及策略授权中,配置了服务授权以及策略授权,这篇来搭建基础的网关服务。 网关大家都知道有什么用,就是很多个服务配置统一的入口访问地址。Ocelot有很多操作,比如负载均衡、限流、缓存、熔断等 这篇就只说基础的配置。 新建一个名为Ocel 阅读全文
posted @ 2023-05-04 17:02 kele-cc 阅读(385) 评论(0) 推荐(0)
摘要: 在上一篇.Net6基于IdentityServer4搭建认证授权服务中,搭建了认证授权服务。这篇来配置接口访问时进行授权和策略授权 新建一个名为Web.API.Test的.Net6项目,引用包源IdentityServer4.AccessTokenValidation Program注入 using 阅读全文
posted @ 2023-05-04 16:19 kele-cc 阅读(436) 评论(0) 推荐(0)
摘要: 新建一个名为Ids4.Server.Net6的空项目,引用包源IdentityServer4 添加Config配置类 using IdentityServer4.Models; using static IdentityServer4.IdentityServerConstants; namespa 阅读全文
posted @ 2023-05-04 14:29 kele-cc 阅读(515) 评论(0) 推荐(0)
摘要: 自.net6开始,微软提供了arm版本的SDK。visual studio for mac安装 .net6、.net7也是arm版本的。arm和x64版本安装的路径不同 arm路径:/usr/local/share/dotnet x64路径:/usr/local/share/dotnet/x64 由 阅读全文
posted @ 2023-03-30 17:17 kele-cc 阅读(903) 评论(0) 推荐(0)
摘要: 第一个框是警告标签,第二个框是警告波浪线 去除Errors and Warnings下的 Weak warning、Warning、Suggestion三个就差不多了 阅读全文
posted @ 2023-03-30 09:27 kele-cc 阅读(648) 评论(0) 推荐(0)
摘要: wget http://download.redis.io/redis-stable.tar.gz tar -xzvf redis-stable.tar.gz cd redis-stable make cp src/redis-cli /usr/local/bin/ 阅读全文
posted @ 2023-03-02 10:11 kele-cc 阅读(85) 评论(0) 推荐(0)