1.安装防火墙 apt-get install ufw 2. 查看防火墙规则 ufw status 3.开启防火墙 sudo ufw enable 4.关闭防火墙 sudo ufw disable 5.重启防火墙 sudo ufw reload 6.开启指定tcp端口 allow/deny 22/t ...
分类:
其他好文 时间:
2020-12-09 11:51:17
阅读次数:
4
问题:使用EF调用SqlBulkCopy的时候,在创建SqlBulkCopy实例时,传入连接字符串,这里传入Db.Database.Connection.ConnectionString using (SqlBulkCopy bulkCopy = new SqlBulkCopy(Db.Databas ...
分类:
其他好文 时间:
2020-12-09 11:48:40
阅读次数:
4
批量操作Tomcat Shell脚本 #!/bin/bash tom="/opt/ronghelist" product=$1 usage="{gongcheng1|all} {start|stop|restart|status}" if [ "$1" == "" -o "$2" == "" ];t ...
分类:
系统相关 时间:
2020-12-08 12:39:01
阅读次数:
9
前台框架: 请选择时间范围: 搜索 layui.use(['layer','laydate'], function(){ var layer = layui.layer; var laydate = layui.laydate; laydate.render({ elem: '#keywords' ...
分类:
其他好文 时间:
2020-12-08 12:35:48
阅读次数:
7
jmeter中有个元件叫做断言(Assertion),它的作用和loadrunner中的检查点类似; 用于检查测试中得到的响应数据等是否符合预期,用以保证性能测试过程中的数据交互与预期一致。 使用断言的目的:在request的返回层面增加一层判断机制;因为request成功了,并不代表结果一定正确。 ...
分类:
其他好文 时间:
2020-12-08 12:28:14
阅读次数:
6
1.MySQL自定义排序函数FIELD() order by FIELD(a.status,3,2,4,1) 按照3,2,4,1 排序 显示 2. FIND_IN_SET(a.name, "a,b,c,d") 判断a.name 是否在 "a,b,c,d" 中 ,判断时 "a,b,c,d" 用逗号分割 ...
分类:
数据库 时间:
2020-12-01 12:11:01
阅读次数:
11
1.linux常用命令 1.1 系统命令 runlevel # 查看当前的运行级别systemctl status sshd # 开启网络服务功能 stop # 关闭 restart # 重启 reload # 重载reboot # 重启halt # 关机poweroff # 关机 1.2 查看文件 ...
分类:
系统相关 时间:
2020-12-01 11:56:19
阅读次数:
30
vagrant常用命令 1. 先创建一个空的目录 2. vagrant init centos/7 初始化虚拟机配置文件 3. vagrant up 启动虚拟机 4. vagrant ssh ssh登录虚拟机 通过 exit 退出 5. vagrant status 查看虚拟机状态 6. vagra ...
分类:
其他好文 时间:
2020-11-27 11:51:30
阅读次数:
23
发现1可以进去0进不去 <if test="status != null and status != ''"> and c.status = #{status} </if> 后来修改为 <if test="status != null"> and c.status = #{status} </if> ...
分类:
其他好文 时间:
2020-11-27 11:44:41
阅读次数:
13
Ubuntu系统是安装在开发板(NanoPi NEO3)上的,记录走过的坑 首先安装好samba,使用 dpkg -l 查看 首先备份好原有文件 cp /etc/samba/smb.conf /etc/samba/smb.conf.bak 编辑配置文件 vim /etc/samba/smb.conf ...
分类:
系统相关 时间:
2020-11-26 15:12:56
阅读次数:
10