摘要: docker run -itd \ -e MODE=cluster \ -e NACOS_APPLICATION_PORT=8860 \ -e NACOS_SERVERS=10.200.1.xx:8860,10.200.1.xx:8870,10.200.1.xx:8880 \ -e SPRING_D 阅读全文
posted @ 2023-11-29 15:58 从零开始的0 阅读(5) 评论(0) 推荐(0) 编辑
摘要: SELECT procpid, START, now() - START AS lap, current_query FROM ( SELECT backendid, pg_stat_get_backend_pid(S.backendid) AS procpid, pg_stat_get_backe 阅读全文
posted @ 2022-11-24 10:07 从零开始的0 阅读(876) 评论(0) 推荐(0) 编辑
摘要: 1. 旧版本删除 yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docke 阅读全文
posted @ 2022-10-22 12:58 从零开始的0 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 一、安装 1. 选择镜像 (1)镜像搜索:docker search rocketmq 也可以访问网址:https://hub.docker.com/r/apache/rocketmq/tags (2)下拉镜像:docker pull apache/rocketmq:4.9.0 (3)同样,拉取管理 阅读全文
posted @ 2022-10-13 14:53 从零开始的0 阅读(692) 评论(0) 推荐(0) 编辑
摘要: 查看防火墙状态:systemctl status firewalld 启动:systemctl start firewalld 停止:systemctl disable firewalld 禁用:systemctl stop firewalld 查看所有打开的端口:firewall-cmd --zo 阅读全文
posted @ 2022-09-02 16:07 从零开始的0 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 一、背景 使用docker运行jar镜像时,报错:“docker no main manifest attribute”,其实在本地使用【java -jar】运行该jar包,同样会报错“xxxx.jar中没有主清单属性”。 二、原因 打开jar包,可以发现文件夹【META-INF】中的文件【MANI 阅读全文
posted @ 2022-07-27 16:35 从零开始的0 阅读(1605) 评论(0) 推荐(0) 编辑
摘要: 一、背景 希望能够实现根据不同的环境动态读取对应的配置。 二、准备 bootstrap.yml文件内容 spring: application: name: ldap-agent-web profiles: active: @profile@ 不同环境的配置:application-dev.yml、 阅读全文
posted @ 2022-07-26 19:57 从零开始的0 阅读(1227) 评论(0) 推荐(0) 编辑
摘要: 一、首先排除你的链接是否没有加协议,即加上“http或https”. 二、如果链接已有协议,还报错,则需要进行一下操作: // 第一步 String encoder = java.net.URLEncoder(url, "UTF-8"); //第二步 String decoder = java.ne 阅读全文
posted @ 2021-06-17 11:00 从零开始的0 阅读(5788) 评论(0) 推荐(0) 编辑
摘要: 需求: 已知输入字符串str,如果str不存在或只有【空格、“无”、“空”】时即为空字符串。 解答过程: 1. 单纯的解答 直接用replace把空格、“空”、“无”替换掉,然后再判断字符串的长度是否为零, 1 public static boolean isBlank(String str) { 阅读全文
posted @ 2021-05-21 16:38 从零开始的0 阅读(397) 评论(0) 推荐(0) 编辑