摘要: home目录下新建安装包存放位置 cd home mkdir install_packet cd /home/install_packet 下载mysql5.7 rpm源 wget http://repo.mysql.com/mysql57-community-release-el7-8.noarc 阅读全文
posted @ 2023-10-18 11:42 void_main() 阅读(58) 评论(0) 推荐(0)
摘要: 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() 阅读(51) 评论(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() 阅读(217) 评论(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() 阅读(137) 评论(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() 阅读(478) 评论(0) 推荐(0)
摘要: 在写项目时候发现springboot(springcloud)项目使用多数据源引入druid的时候,只要查询数据库时间超过10s就会报错: com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failur 阅读全文
posted @ 2023-05-31 16:13 void_main() 阅读(3587) 评论(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() 阅读(7953) 评论(2) 推荐(0)
摘要: 一、性能分析 1.慢查询日志:慢查询日志记录了所有执行时间超过指定时间的所有sql 配置方法修改my.cnf文件如下: #开启慢日志查询 slow_query_log=1 #设置慢日志的时间(单位为秒 默认是10) long_query_time=10 配置完毕之后重启mysql,查看慢日志的位置在 阅读全文
posted @ 2022-08-30 13:48 void_main() 阅读(332) 评论(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() 阅读(635) 评论(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() 阅读(389) 评论(0) 推荐(0)