A panic should always be a last resort, and even then consider a better option! Logging errors with context (cause and message) Expose errors as metri ...
分类:
其他好文 时间:
2021-03-05 13:31:10
阅读次数:
0
我主要参考这篇文章来搭建easy-mock,但是在自己搭建的过程中遇到一些其它的问题,所以写了这边文章来记录搭建的细节,也算是对这篇文章的补充吧。 搭建easy-mock主要分成两种途径:一、需要分别安装node、mogonDB、Redis,而且node 的版本不能超过v9;二、基于docker-c ...
[root@localhost dpdk-19.11]# tc qdisc show dev enp125s0f0 qdisc pfifo_fast 0: root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1 [root@loca ...
分类:
其他好文 时间:
2021-03-05 13:09:54
阅读次数:
0
is_null , empty , isset 1、is_null() 判断是否为null,什么时候变量值为null? 1.$n; //声明但为初始化 2.$n =null ; //初始化为null 用is_null($n)来判断返回true,其他函数全部返回false 2、empty()判断值是否 ...
分类:
Web程序 时间:
2021-03-05 13:01:39
阅读次数:
0
1、在/root/bin目录创建脚本xcall.sh 2、脚本本周编写内容 [root@wd ~]# vi xcall.sh !/bin/bash for i in wd.idc.com wd2 wd1 do echo $i ssh $i "$*" done 3、修改脚本执行权限 [root@wd ...
分类:
其他好文 时间:
2021-03-05 12:59:52
阅读次数:
0
1.选中启用适用于Linux的windows子系统,重启计算机 2.去Microsoft Store搜索Linux 3.安装成功后,启动Ubuntu 第一次需要添加用户 及密码 4.添加root密码 在终端输入命令 sudo passwd ,输入成功后 该密码就为root密码 设置成功后 就可以输入 ...
SecurityContext SecurityContext是安全的上下文,所有的数据都是保存到SecurityContext中。 可以通过SecurityContext获取的对象有: Authentication SecurityContextHolder SecurityContextHold ...
分类:
编程语言 时间:
2021-03-04 13:35:29
阅读次数:
0
set objWMIService = Getobject("winmgmts:\\\\" & strComputer & "\\root\\cimv2") set colusb_hub = objWMIService.ExecQuery("Select * From win32_USBCONTRO ...
分类:
其他好文 时间:
2021-03-04 13:34:43
阅读次数:
0
先用浏览器打开服务器连接 第一步:切换到root用户 命令: sudo -i 第二步:修改root密码 命令: passwd 重复录入所修改的密码,录入密码时是隐藏的,放心录入,录入后回车,再次录入确认密码 (单独修改密码是不能使用shell进行登录连接的,还需要开启权限) 第三步:开启权限 修改配 ...
分类:
其他好文 时间:
2021-03-04 13:32:48
阅读次数:
0
查看本机的磁盘: [root@jojo ~]# fdisk -l Disk /dev/vda: 42.9 GB, 42949672960 bytes, 83886080 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logic ...
分类:
系统相关 时间:
2021-03-04 13:25:41
阅读次数:
0