会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
猴子也疯狂
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
···
29
下一页
2024年4月13日
docker 日常使用
摘要: docker执行容器内的命令 docker exec -it <container_id> ls docker exec -it <container_id> bash -c "ls" docker exec -it <container_id> bash -c "command1; command
阅读全文
posted @ 2024-04-13 15:35 Lafite-1820
阅读(29)
评论(0)
推荐(0)
2024年3月2日
ubuntu 安装问题
摘要: 出现问题 使用apt-get install 安装软件报错E: Sub-process /usr/bin/dpkg returned an error code (1) 原因分析及解决思路: 如果要安装某个软件包xxx,遇到此错误,最简单的方法是使用以下命令进行修复: sudo apt-get -f
阅读全文
posted @ 2024-03-02 22:27 Lafite-1820
阅读(154)
评论(0)
推荐(0)
mysql 日常使用 - 字段字符集更改
摘要: 1. 给某个字段增加随机48~200 并限制条数 UPDATE cou_data.qpl_xxxxx SET default_saves_num = FLOOR(RAND() * (200 - 48 + 1) + 48) where id > 0 and default_saves_num = 0
阅读全文
posted @ 2024-03-02 15:11 Lafite-1820
阅读(47)
评论(0)
推荐(0)
2024年2月28日
写代码有这16个好习惯,可以减少80%非业务的BUG!
摘要: 前言 1. 修改完代码,记得自测一下 2. 方法入参尽量都检验 3. 修改老接口的时候,思考接口的兼容性。 4.对于复杂的代码逻辑,添加清楚的注释 5. 使用完IO资源流,需要关闭 6.代码采取措施避免运行时错误(如数组边界溢出,被零除等) 7.尽量不在循环里远程调用、或者数据库操作,优先考虑批量进
阅读全文
posted @ 2024-02-28 10:05 Lafite-1820
阅读(101)
评论(0)
推荐(0)
2024年2月27日
程序员新人频繁使用count(*),被组长批评后怒怼:性能并不拉垮!
摘要: 以下文章来源于小白debug ,作者小白 今天,我们就以短信为话题聊起。 短信,它又叫SMS。 比如说,你有一张短信表(sms),里面放了各种需要发送的短信信息。 sms建表sql sms表 需要注意的是state字段,为0的时候说明这时候短信还未发送。 此时还会有一个异步线程不断的捞起未发送(st
阅读全文
posted @ 2024-02-27 18:50 Lafite-1820
阅读(74)
评论(0)
推荐(0)
2024年2月4日
Nginx中查看请求的耗时
摘要: 要在Nginx中查看请求的耗时,可以使用ngx_http_log_module模块来记录日志。 首先,需要确保已经安装了Nginx并且配置文件正常运行。然后按照下面的步骤进行操作: 打开Nginx的配置文件(通常位于/etc/nginx/nginx.conf); 在http部分添加或修改如下指令:
阅读全文
posted @ 2024-02-04 15:07 Lafite-1820
阅读(1912)
评论(1)
推荐(0)
NGINX SSL_do_handshake() failed 报错处理
摘要: nginx 添加配置如下: proxy_ssl_server_name on; proxy_ssl_session_reuse off; 2024/02/04 10:32:57 [error] 1054672#0: *1786 SSL_do_handshake() failed (SSL: erro
阅读全文
posted @ 2024-02-04 10:48 Lafite-1820
阅读(1709)
评论(1)
推荐(0)
2024年2月2日
缓存预热是指在 Spring Boot 项目启动时
摘要: 缓存预热是指在 Spring Boot 项目启动时,预先将数据加载到缓存系统(如 Redis)中的一种机制。 那么问题来了,在 Spring Boot 项目启动之后,在什么时候?在哪里可以将数据加载到缓存系统呢? 实现方案概述 在 Spring Boot 启动之后,可以通过以下手段实现缓存预热: 使
阅读全文
posted @ 2024-02-02 17:31 Lafite-1820
阅读(179)
评论(1)
推荐(0)
nginx 配置 图片
摘要: server { listen 80; server_name img.xxxxxx.com; location /images { alias /resource/logo/; #将/path/to/image/folder替换成存放图片的真实路径 # autoindex on; #显示目录列表
阅读全文
posted @ 2024-02-02 14:16 Lafite-1820
阅读(67)
评论(0)
推荐(0)
2024年2月1日
aws ssh 设置
摘要: 编辑此ssh文件 sudo vi /etc/ssh/sshd_config 找到下面的两行 打开注解 no 改成 yes PermitRootLogin yes PubkeyAuthentication yes PasswordAuthentication yes 重启ssh systemctl r
阅读全文
posted @ 2024-02-01 10:53 Lafite-1820
阅读(68)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
29
下一页
公告