会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Nihaorz
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
···
39
下一页
2025年3月6日
数据库数据量统计
摘要: 数据库数据量统计 PostgreSQL 统计 统计存储空间 查询: -- PostgreSQL 统计数据库表占用的磁盘空间 SELECT table_name, pg_total_relation_size (table_name) AS total_size FROM information_sc
阅读全文
posted @ 2025-03-06 17:25 Nihaorz
阅读(77)
评论(0)
推荐(0)
2024年11月13日
【docker-compose示例】之MySQL
摘要: docker-compose.yml services: mysql: image: mysql:5.7 container_name: mysql volumes: - ./data:/var/lib/mysql command: --lower_case_table_names=1 enviro
阅读全文
posted @ 2024-11-13 21:06 Nihaorz
阅读(45)
评论(0)
推荐(0)
2024年11月12日
openwrt docker pull 拉取镜像时使用 http 代理
摘要: 修改 /etc/init.d/dockerd 使用 procd_set_param env 设置环境变量 原脚本: start_service() { local nofile=$(cat /proc/sys/fs/nr_open) process_config procd_open_instanc
阅读全文
posted @ 2024-11-12 14:23 Nihaorz
阅读(844)
评论(0)
推荐(0)
2024年10月18日
spring-boot 官方推荐的 docker 镜像制作方式(利用缓存,高效构建,减少磁盘存储)
摘要: Dockerfile: FROM eclipse-temurin:8-jre as builder WORKDIR application ARG JAR_FILE=target/*.jar COPY ${JAR_FILE} application.jar RUN java -Djarmode=la
阅读全文
posted @ 2024-10-18 16:02 Nihaorz
阅读(138)
评论(0)
推荐(0)
2024年10月9日
OpenWrt 运行 tailscale 登录 headscale,配置路由转发
摘要: headscale 安装参考:https://chuna2.787528.xyz/nihaorz/p/18455027 tailscale 安装 cd /var/lib/ curl -OL https://pkgs.tailscale.com/stable/tailscale_1.74.1_arm64.
阅读全文
posted @ 2024-10-09 20:32 Nihaorz
阅读(1734)
评论(0)
推荐(0)
docker 容器安装配置 headscale
摘要: docker-compose.yml services: headscale: image: headscale/headscale:v0.23.0 container_name: headscale volumes: - /etc/uhttpd.crt:/etc/uhttpd.crt - /etc
阅读全文
posted @ 2024-10-09 20:02 Nihaorz
阅读(893)
评论(0)
推荐(0)
2024年9月25日
IDEA 右键菜单注册表
摘要: IDEA 右键菜单 - 注册.reg Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\Open with IDEA] "Icon"="D:\\Program Files\\ideaIU
阅读全文
posted @ 2024-09-25 23:46 Nihaorz
阅读(136)
评论(0)
推荐(0)
2024年9月10日
debian 12 初始化
摘要: 启用root用户ssh远程登录 nano /etc/ssh/sshd_config,PermitRootLogin 修改为 yes: #PermitRootLogin prohibit-password PermitRootLogin yes 配置华为云软件源 nano /etc/apt/sourc
阅读全文
posted @ 2024-09-10 10:34 Nihaorz
阅读(294)
评论(0)
推荐(0)
2024年1月16日
Spring AOP this 失效解决方案,使用 self() 代替
摘要: 众所周知,在 Spring 的 bean 中使用 this 引用,会导致 AOP 切面失效,那我们就不用 this,使用 self() 代替 SpringUtils.java package com.xxx.util; import org.springframework.beans.BeansEx
阅读全文
posted @ 2024-01-16 15:35 Nihaorz
阅读(449)
评论(0)
推荐(0)
Spring 工具:DigestUtils md5 摘要工具
摘要: 工具类:org.springframework.util.DigestUtils 作用:计算字节数组、输入流的 md5 摘要 所在模块:spring-core 方法 描述 String md5DigestAsHex(byte[] bytes) 返回字节数组的 md5 摘要(计算字符串) String
阅读全文
posted @ 2024-01-16 11:32 Nihaorz
阅读(447)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
39
下一页
公告