上一页 1 2 3 4 5 6 ··· 10 下一页

spring boot 添加swagger支持

摘要: 添加maven依赖 <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-boot-starter</artifactId> <version>3.0.0</version> </dependency> <depende 阅读全文
posted @ 2023-03-10 15:08 cococooder 阅读(25) 评论(0) 推荐(0) 编辑

ubuntu iptables 做为路由转发

摘要: 实现功能,本地服务器的号段的192.168.8.0/24,而做为路由器的机器有2个ip,192.168.8.x和另一个ip,而另一个ip可以访问 192.168.2.0/24号段, 为了让其它192.168.8.0/24上服务器也可以访问192.168.2.0/24,就把当前服务器做为路由。 其它机 阅读全文
posted @ 2023-02-28 15:39 cococooder 阅读(699) 评论(0) 推荐(0) 编辑

ubuntu 逻辑卷增加磁盘

摘要: 使用lv* 相关的命令 lvdisplay lvscan ACTIVE '/dev/ubuntu-vg/ubuntu-lv' [<74.00 GiB] inherit lvextend -l +100%free /dev/mapper/ubuntu--vg-ubuntu--lv 其中/dev/map 阅读全文
posted @ 2023-02-23 10:47 cococooder 阅读(54) 评论(0) 推荐(0) 编辑

ubuntu 替换国内源,清华源

摘要: 参考 https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/ Ubuntu 的软件源配置文件是 /etc/apt/sources.list。将系统自带的该文件做个备份,将该文件替换为下面内容,即可使用 TUNA 的软件源镜像。 22.04 # 默认注释了源 阅读全文
posted @ 2023-02-23 10:11 cococooder 阅读(326) 评论(0) 推荐(0) 编辑

linux 查看product_uuid,即主板id,机器识别码,需要root权限

摘要: 1. 用命令 sudo dmidecode | grep UUID 或者 sudo lshw | grep uuid 2. 直接查看文件描述 sudo cat /sys/class/dmi/id/product_uuid 阅读全文
posted @ 2023-01-03 10:02 cococooder 阅读(1062) 评论(0) 推荐(0) 编辑

mysql掉电后重启失败问题

摘要: 报错 2022-12-07T01:41:02.844533Z 0 [ERROR] InnoDB: Ignoring the redo log due to missing MLOG_CHECKPOINT between the checkpoint 265368743141 and the end 阅读全文
posted @ 2022-12-07 10:38 cococooder 阅读(143) 评论(0) 推荐(0) 编辑

mysql 修改字符集相关操作

摘要: 修改某个表字段的字符集 ALTER TABLE apply_info MODIFY member_name varchar(128) CHARACTER SET utf8mb4; 查看某个库的字符集类型 use chat;select @@character_set_database; 修改数据库的 阅读全文
posted @ 2022-11-29 16:50 cococooder 阅读(39) 评论(2) 推荐(0) 编辑

centos7 安装mysql 5.7

摘要: 1. 移除mariadbrpm -qa | grep -i mariadbrpm -e --nodeps 上一条命令查出来的mariadb2. 下载安装包https://downloads.mysql.com/archives/community/3. 打开安装包 tar -xvf mysql-5. 阅读全文
posted @ 2022-08-11 11:05 cococooder 阅读(125) 评论(0) 推荐(0) 编辑

maven加载本地的jar包

摘要: 方式1 ,通过scope = system的方式加载 <dependency> <groupId>com.sun.jna</groupId> <artifactId>jna</artifactId> <scope>system</scope> <version>3.0.9</version> <sy 阅读全文
posted @ 2022-05-18 17:22 cococooder 阅读(338) 评论(0) 推荐(0) 编辑

wsl 的 tail -f 不好使

摘要: windows 上的sub linux ubuntu 的tail -f 不好使 在/etc/profile 中加入alias alias tailf='tail -f disable-inotify' 即可 参考 https://github.com/Microsoft/WSL/issues/329 阅读全文
posted @ 2021-12-29 14:08 cococooder 阅读(147) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页