摘要: 1.首先安装redis,通过apt install redis-server安装 2.找到目录创建redis-server目录,创建6001~6006六个子目录 3.每个子目录下添加redis.conf文件,也可以将安装好的redis的conf文件复制到此 4.redis.conf中下列属性: da 阅读全文
posted @ 2022-01-25 15:31 狗狗币毁我青春 阅读(317) 评论(0) 推荐(0)
摘要: WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.u 阅读全文
posted @ 2021-09-27 13:39 狗狗币毁我青春 阅读(414) 评论(0) 推荐(0)
摘要: 记录一下apisix使用consul作为服务发现时遇到的问题及解决办法。 不要用docker启动consul,那样dns解析会失败。 使用官方文档里面提供的方法来运行consul,但是要提前将系统中占用53端口的服务停掉:systemctl stop systemd-resolved。 再去启动co 阅读全文
posted @ 2021-08-13 09:42 狗狗币毁我青春 阅读(255) 评论(0) 推荐(0)
摘要: 目前在做nestjs中登录成功后jwt签发token,通过token来实现全局的接口请求鉴权。 可以使用useGuards来实现接口的鉴权,但是useGuards为控制器级别的守卫,无法来完成全局鉴权。 在网上看到很多方法,比如直接使用useGlobalGuards方法来直接声明AuthGuard, 阅读全文
posted @ 2021-08-02 18:04 狗狗币毁我青春 阅读(1134) 评论(0) 推荐(0)
摘要: 1.首先下载docker compose 网上有很多通过sudo curl -L https://github.com/docker/compose/releases/download/1.17.0/docker-compose-`uname -s`-`uname -m` -o /usr/local 阅读全文
posted @ 2021-07-23 16:38 狗狗币毁我青春 阅读(72) 评论(0) 推荐(0)