摘要:
centos统计服务器当前IP连接数 netstat -tun | awk '{print $5}' | cut -d: -f1 |sort | uniq -c | sort -n 阅读全文
摘要:
默认feign服务提供者发生异常后只返回固定几个属性,有些属性是默认关闭的需要配置开启 具体查看org.springframework.boot.web.servlet.error.DefaultErrorAttributes.getErrorAttributes { "timestamp": 16 阅读全文
摘要:
拉镜像,版本查看:https://github.com/nacos-group/nacos-docker seata版本对应 https://github.com/alibaba/spring-cloud-alibaba/wiki/%E7%89%88%E6%9C%AC%E8%AF%B4%E6%98% 阅读全文
摘要:
原因:因为boot2.3.x版本可能考虑信息安全问题,把以下两个值默认为 server: error: include-message: never include-exception: false 发生异常是返回 { "timestamp": 1632713940269, "status": 50 阅读全文
摘要:
1、拉取镜像 docker pull foxiswho/rocketmq:4.8.0 2、创建数据目录 mkdir -p /home/dockerdata/rocketmq/namesrv/logs mkdir -p /home/dockerdata/rocketmq/broker/storemkd 阅读全文
摘要:
1、拉取镜像 docker pull seafileltd/seafile:latest 2、创建数据目录 mkdir -p /home/dockerdata/seafile 3、运行容器 docker run -d --name seafile \ -e SEAFILE_SERVER_HOSTNA 阅读全文
摘要:
default Class<T> thisTClass() { Class<?> class1 = getClass(); Class<?> interfaces = class1.getInterfaces()[0]; Type[] genericInterfaces = interfaces.g 阅读全文
摘要:
mysql GROUP BY无法实现,用的临时变量完成的,经过测试效率极高-- @rownum 用于计算条数-- @clazz_id 用于比较的临时班级id(分组列名)-- 获取每个班级前5名的学生 SELECT * FROM ( SELECT id, student_id, score, claz 阅读全文
摘要:
方法1: 直接把需要清空的表改一个名字,然后重新建一个新表命名为之前的表名,然后再把改名后的表删除 方法2: MySQL可以通过optimize table语句释放表空间,重组表数据和索引的物理页,减少所占空间和优化读写性能。如果使用delete语句删除数据库,表空间不会直接回收,您可以用optim 阅读全文
摘要:
方式一 1、复制主机localtime到容器 docker cp /etc/localtime 容器id:/etc/localtime 如果报错 Error response from daemon: Error processing tar file(exit status 1): invalid 阅读全文