一、封装全局异常过滤器实现IExceptionFilter接口 public class GlobalExceptionFilter : IExceptionFilter { public void OnException(ExceptionContext context) { if (contex ...
分类:
Web程序 时间:
2021-06-10 18:02:47
阅读次数:
0
kubectl -n kube-system exec -it $pod -- ovs-vsctl list-ports br-int ovnip=`ip a | grep "scope global ovn4nfv0" |awk '{match($0, /.+inet\s([^ /]*)/, a) ...
分类:
其他好文 时间:
2021-06-10 17:55:40
阅读次数:
0
tmux 确实很好用,个人建议是修改下tmux中的组合键ctrl+b。查看prefix现有绑定键: tmux show-options -g | grep prefix要在tmux内置命令中修改及时生效,可在终端中输入以下命令:tmux set -g prefix C-xtmux unbind C- ...
分类:
其他好文 时间:
2021-06-09 15:27:17
阅读次数:
0
#!/bin/bash#echo "vm.swappiness = 0">> /etc/sysctl.confswapoff -a && swapon -asysctl -psystemctl stop firewalld.servicesystemctl disable firewalld.ser ...
分类:
数据库 时间:
2021-06-08 23:43:55
阅读次数:
0
这种情况首先考虑jdk路径是否正确,当然我不是这个问题,否则也没必要写篇博客记录一下了。 经研究发现是CentOS7环境中缺少32位运行环境导致的错误 解决办法: 首先查看本机是否有32位库 yum list|grep ia32-libs 发现并没有安装32位运行环境。 使用yum命令进行安装 yu ...
分类:
编程语言 时间:
2021-06-08 23:43:42
阅读次数:
0
查看rosbag坐标系 rostopic echo topic_name | grep frame_id 打印话题数据 rostopic echo topic_name 查看话题消息频率 rostopic hz topic_name ...
分类:
其他好文 时间:
2021-06-07 20:25:45
阅读次数:
0
db = pymysql.connect(host="localhost", port=3306, user="root", passwd="xxx", db="stu_info")cursor = db.cursor(cursor=pymysql.cursors.DictCursor)cursor ...
分类:
数据库 时间:
2021-06-07 20:09:12
阅读次数:
0
2021-06-06 关键字:Shell具体应用 需求:在指定目录中查找文件名包含指定字符的文件 - 支持自定义关键字查找 - 支持自定义查找路径及查找关键字 使用方式: 假设这个工具的名称为:fgtool.sh (取意 shell tool for find and grep)。 直接运行此工具, ...
分类:
系统相关 时间:
2021-06-06 19:18:00
阅读次数:
0
启动 % brew services start php@5.6 ==> Successfully started `php@5.6` (label: homebrew.mxcl.php@5.6) jiqing@jiqingdeMacBook-Pro nginx % ps -ef | grep ph ...
分类:
Web程序 时间:
2021-06-06 19:15:28
阅读次数:
0
Preliminaries Linux Basics Change Password: passwd shutdown: sudo shutdown -h 3 (broadcast to all users in 3 mins) reboot: sudo reboot -r now create a ...
分类:
其他好文 时间:
2021-06-06 18:53:34
阅读次数:
0