摘要: 1.运行以下命令,下载docker-ce的yum源 sudo wget -O /etc/yum.repos.d/docker-ce.repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo 2.运行以下命令,安装Doc 阅读全文
posted @ 2023-10-18 11:12 void_main() 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 1.nginx中加入nginx软件包 yum install epel-release yum update 2.安装nginx yum -y install nginx 3.查看nginx相关目录(可跳过) whereis nginx 4.启动nginx systemctl start nginx 阅读全文
posted @ 2023-10-18 11:08 void_main() 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 安装启动redis并设置开机自动启动 yum install -y epel-release && sleep 3 && yum install -y redis && systemctl enable --now redis 查看redis服务器状态 systemctl enable redis 阅读全文
posted @ 2023-10-18 10:48 void_main() 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 1.先查看本地是否自带java环境: yum list installed |grep java 2.卸载自带的java(输入su,输入root超级管理员的密码,切换到root用户模式) yum -y remove java-1.8.0-openjdk* yum -y remove tzdata-j 阅读全文
posted @ 2023-10-18 10:21 void_main() 阅读(427) 评论(0) 推荐(0) 编辑
摘要: 在写项目时候发现springboot(springcloud)项目使用多数据源引入druid的时候,只要查询数据库时间超过10s就会报错: com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failur 阅读全文
posted @ 2023-05-31 16:13 void_main() 阅读(2677) 评论(0) 推荐(0) 编辑
摘要: 这两天部署一个新的若依springcloud系统,nacos安装启动没有问题,但是jar包启动的时候一直报错Server check fail, please check server 192.168.41.61 ,port 9848 is available , error ={},nacos版本 阅读全文
posted @ 2022-12-09 11:47 void_main() 阅读(6932) 评论(2) 推荐(0) 编辑
摘要: 一、性能分析 1.慢查询日志:慢查询日志记录了所有执行时间超过指定时间的所有sql 配置方法修改my.cnf文件如下: #开启慢日志查询 slow_query_log=1 #设置慢日志的时间(单位为秒 默认是10) long_query_time=10 配置完毕之后重启mysql,查看慢日志的位置在 阅读全文
posted @ 2022-08-30 13:48 void_main() 阅读(321) 评论(0) 推荐(0) 编辑
摘要: String sourceStr = "[\n" + " {\"id\":\"1001\",\"name\":\"测试1\",\"value\":\"111\"},\n" + " {\"id\":\"1002\",\"name\":\"测试2\",\"value\":\"222\"},\n" + & 阅读全文
posted @ 2022-08-17 13:24 void_main() 阅读(591) 评论(0) 推荐(0) 编辑
摘要: restTemplate请求报错RestClientException Could not extract response: no suitable HttpMessageConverter found for response type [class xxxx] and content type 阅读全文
posted @ 2022-08-17 11:28 void_main() 阅读(322) 评论(0) 推荐(0) 编辑
摘要: 一、nacos注册中心设置集群属性 目的:设置集群和负载均衡策略之后服务间的调用时nacos会以同一集群的服务器为优先考虑,当同一集群没有合适服务器之后才会去调用其他集群的服务器 设置方法 在配置文件yml中设置集群属性cluster-name 自定义名称 nacos: discovery: # 服 阅读全文
posted @ 2022-08-01 15:51 void_main() 阅读(118) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示