摘要: ### YML ```yaml rabbitmq: host: xxx.xxx.xxx.xxx port: 5672 virtual-host: dev username: xxx password: xxx publisher-confirm-type: correlated publisher- 阅读全文
posted @ 2023-06-13 15:44 码农记事本 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 第一个过滤器 import com.alibaba.fastjson.JSON; import lombok.extern.slf4j.Slf4j; import org.springframework.cloud.gateway.filter.GatewayFilterChain; import 阅读全文
posted @ 2023-02-27 09:18 码农记事本 阅读(538) 评论(0) 推荐(0) 编辑
摘要: 原因 大量批次代码,gitlab限制IP,访问返回403 解决办法 启动gitlab白名单功能,并把限制的IP配置进去 打开 /etc/gitlab/gitlab.rb 文件。 查找 gitlab_rails['rack_attack_git_basic_auth'] 关键词。 取消注释 修改ip_ 阅读全文
posted @ 2023-02-24 14:38 码农记事本 阅读(178) 评论(0) 推荐(0) 编辑
摘要: docker run --name nacos -d \ -p 8848:8848 -p 9848:9848 -p 9849:9849 \ --network=host \ -e MODE=cluster \ -e NACOS_SERVERS="172.xx.xx.1:8848 172.xx.xx. 阅读全文
posted @ 2023-02-22 13:41 码农记事本 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 父模块配置 > build.gradle buildscript { //统一版本管理 ext { springBootVersion = '2.3.12.RELEASE' springCloudVersion = 'Hoxton.SR12' springCloudAlibabaVersion = 阅读全文
posted @ 2023-02-06 16:55 码农记事本 阅读(412) 评论(0) 推荐(0) 编辑
摘要: docker安装 创建数据挂在并给予权限 mkdir -p /opt/docker/jenkins chmod 777 /opt/docker/jenkins 启动容器 docker run --name jenkins -d -p 8888:8080 \ -v /etc/localtime:/et 阅读全文
posted @ 2023-01-09 10:17 码农记事本 阅读(17) 评论(0) 推荐(0) 编辑
摘要: mysql字段 springboot配置 依赖 compile('com.vladmihalcea:hibernate-types-52:2.4.1') 实体 @Getter @Setter @Entity(name = "opt_log") @TypeDef(name = "json",typeC 阅读全文
posted @ 2023-01-07 13:34 码农记事本 阅读(332) 评论(0) 推荐(0) 编辑
摘要: lua脚本 resources 下创建文件 redis/AccessLimit.lua 内容为: local limitSecond = tonumber(ARGV[1]) local limitMaxCount = tonumber(ARGV[2]) local num = tonumber(re 阅读全文
posted @ 2023-01-06 09:18 码农记事本 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 创建挂载目录 mkdir -p /opt/docker/rabbitmq 启动 docker run -d --restart=always --name=rabbitmq -p5672:5672 -p15672:15672 \ -v /opt/docker/rabbitmq:/var/lib/ra 阅读全文
posted @ 2023-01-06 09:06 码农记事本 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 以腾讯去为例,平台上有合作的免费数据证书申请 将域名解析后,申请好证书后,将证书下载放入服务器中 /etc/nginx/conf.d/,解压后将会看到 .pen 和 .key 的文件 cd /etc/nginx/conf.d/ 创建配置文件 vim blog.conf 如下配置,注意 .pen 和 阅读全文
posted @ 2023-01-05 17:11 码农记事本 阅读(205) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示