- ALL
- java33
- linux32
- 工具17
- 其他15
- 数据库7
- ai5
- git5
- vue5
- nas5
- 前端5
- 脚本3
- docker3
- 漫画3
- framework3
- windows3
- app2
- hexo2
- 智能家居2
- maven2
- 小程序2
- spring2
- api1
- 资源1
- mysql1
- markdown1
- 部署1
- 安全1
- python1
- question1
- 系统1
- 数据传输1
- 数据结构1
- 运维1
- nginx1
博客评论系统Twikoo本地化部署
安装 1npm i -g tkserver 配置环境 执行一下代码,根据自己情况自行修改TWIKOO_DATA,TWIKOO_PORT,TWIKOO_THROTTLE后面的内容。PS:TWIKOO_DATA是干嘛的我也不知道,实际也没见他生效 12345678echo " ">>/etc/profileecho "# Made for tikoo env by chenqi on $(date +%F)">>/etc/profileecho 'export TWIKOO_DATA=/home/twikoo'>>/etc/profileecho 'export TWIKOO_PORT=7654'>>/etc/profileecho 'export TWIKOO_THROTTLE=20000'>>/etc/profiletail -4 /etc/profilesource /etc/profileecho...
mybatis 分页查询导致数据缺失问题
问题 分页查询主表数据,需要关联查询出子表数据,子表数据超过一条的情况下,查询出的每页条数小于预期 存在问题的写法 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"...
js文件导出
修改前 通过提交表单获取文件 123456789document.body.appendChild(form)form.method = 'POST'form.action = baseURL + 'export/toClAccessRecordDetailExport?carLicense=' + vm.carLicense + "&beginTime=" + sTime + "&endTime=" + eTime + "&assessType=" + vm.select.assessType + "&carType=" + vm.select .carType + "&unitId=" + exportUnitId + "&materialName=" + vm.select.materialName + ...
allbs工具类说明 - 幂等、防重复提交
依赖jar包 引入包 版本 jdk 1.8 spring boot 2.6.2 spring-boot-starter-aop 2.6.2 redisson-spring-boot-starter 3.13.4 使用 添加依赖 mavenGradleKotlin12345678910<dependency> <groupId>cn.allbs</groupId> <artifactId>allbs-idempotent</artifactId> <version>1.1.8</version></dependency><dependency> <groupId>org.redisson</groupId> <artifactId>redisson-spring-boot-starter</artifactId> ...
常用的linux操作指令 - httpd
文件位置/etc/httpd/conf httpd启动 1systemctl start httpd.service httpd停止 1systemctl stop httpd.service httpd重启 1systemctl restart httpd.service httpd开机启动 1systemctl enable httpd.service httpd开机不启动 1systemctl disable httpd.service 查看httpd状态 1systemctl status httpd.service
常用的linux操作指令 - 服务相关
程序后台执行 1nohup java -jar *** 2>&1 & 输出固定位置的log 1nohup java -jar jd-gather-0.0.1-SNAPSHOT.jar > /mnt/data/jd/jdServer/jd-gather/log/out.log 2>&1 & nohup 文件过大的解决办法 1234# 不输出日志到nohup.out 文件nohup ./program >/dev/null 2>&1 &# 只输出错误信息到nohup.out 文件nohup ./program >/dev/null 2>log & 强制关闭进程名包含xxx的所有进程 1ps aux|grep xxx | grep -v grep | awk '{print $2}' | xargs kill -9
常用的linux操作指令 - 文件操作
删除指定位置的文件(以下为删除/tmp目录下以rdc_deploy开头的后缀为log的文件) 1find /tmp -name rdc_deploy*.log | xargs rm 彻底删除文件并释放空间 1find /tmp -name rdc_deploy* | xargs shred 查看当前文件夹下文件占用空间 1du -sh * 查看所有磁盘占用空间 1df -h 查看所有删除未释放空间的文件并释放 12345# 查看已删除并且未删除空间文件的进程lsof | grep deleted# 释放空间kill -9 进程 查看文件里有多少行 1wc -l filename 看文件里有多少个word 1wc -w filename 文件里最长的那一行是多少个字 1wc -L filename 统计字节数 1wc -c 压缩命令 123tar czvf xxx.tarzip -r xxx.zip 解压缩命令 123tar zxvf xxx.tarunzip xxx.zip 解压到指定文件夹 1tar zxvf xxx.tar -C /xxx/yyy/
常用的linux操作指令 - 检索操作
反向匹配, 查找不包含xxx的内容 1grep -v xxx 排除所有空行 1grep -v '^/pre> 查询空行 12# 返回结果 2,则说明第二行是空行grep -n “^$” 111.txt 查询以abc开头的行 1grep -n “^abc” 111.txt 同时列出该词语出现在文章的第几行 1grep 'xxx' -n xxx.log 计算一下该字串出现的次数 1grep 'xxx' -c xxx.log 比对的时候,不计较大小写的不同 1grep 'xxx' -i xxx.log 以’:’ 为分隔符,如果第五域有user则输出该行 1awk -F ':' '{if ($5 ~ /user/) print $0}' /etc/passwd 统计单个文件中某个字符(串)(中文无效)出现的次数 1awk -v RS='character' 'END {print...
常用的linux操作指令 - 用户相关
新增用户组 1groupadd user 新增用户 1useradd user -g user 变更文件所属用户, 用户组 1chown -R user.user xxx.log
常用的linux操作指令 - 网络及端口操作
查看防火墙是否运行 1firewall-cmd --state 关闭指定端口 1firewall-cmd --zone=public --remove-port=8080/tcp --permanent 防火墙端口开放 1234firewall-cmd --zone=public --add-port=端口/tcp --permanentiptables -A INPUT -p tcp -m tcp --dport 要开放的端口 -j ACCEPTiptables -A INPUT -p udp -m udp --dport 要开放的端口 -j ACCEPT 重启防火墙 12345firewall-cmd --reload# 永久保存service iptables saveservice iptables restart 查看防火墙开放端口列表 1firewall-cmd --zone=public --list-ports 查看规则 1iptables --list-rules 端口测试 1telnet ip 端口 查看供外网访问端口 123netstat...