要求:用户输入用户名和密码错误三次,就对该用户进行锁定,不让其进行登录。 程序中test为用户的信息库: test1:为缓存错误用户的信息,对错误用户进行计数。 test2:为存储达到规定次数的用户信息,就是黑名单。使在名单里的用户无法完成登录操作。 ...
分类:
编程语言 时间:
2017-04-09 09:45:41
阅读次数:
202
第七单元1.进程定义进程就是cpu未完成的工作,仍在继续进行的任务。2.ps命令psa关于当前环境的所有进程x与当前环境无关的所有进程f显示进程从属关系e显示进程调用环境工具的详细信息l长列表显示进程的详细信息u显示进程的用户信息psax-o%cpu,%mem,user,group,comm,nice,pid//指..
分类:
系统相关 时间:
2017-04-06 23:49:03
阅读次数:
222
import java.util.*; /** * Map集合遍历的方法 * @author Administrator * */public class Test2 { public static void main(String[] args) { Map<String,String> map= ...
分类:
其他好文 时间:
2017-04-05 19:24:48
阅读次数:
142
1、dev.js: 2、server.js: 3、package.json: 4、index.js: 5、test.js: 6、test2.js: ...
分类:
Web程序 时间:
2017-04-05 12:47:17
阅读次数:
630
1 2 3 4 网页特效展示中心 5 9 10 11 12 13 48 49 onclick 50 51 test1 52 test2 53 test3 54 test4 55 test5 56 57 58 59 onclick 60 61 test11 62 test22 63 test33 64... ...
分类:
Web程序 时间:
2017-04-03 12:03:37
阅读次数:
1910
public static void Test2() { object o1 = new 鸟(); object o2 = new 飞机(); object o3 = new 超人(); IFlyable i1; //o1是不是... ...
分类:
其他好文 时间:
2017-04-02 17:39:12
阅读次数:
146
在最近的工作中,需要用到Java要调用shell脚本的情况。总结如下:@RequestMapping("/changePermission") publicStringchangePermission(){ StringreturnCode=""; try{ Processprocess=Runtime.getRuntime().exec("chmod755/tmp/upgrade.sh"); process.waitFor();//test2...
分类:
编程语言 时间:
2017-04-01 14:15:45
阅读次数:
821
linux下添加,删除,修改,查看用户和用户组 1,创建组 groupadd test 增加一个test组 2,修改组 groupmod -n test2 test 将test组的名子改成test2 3,删除组 groupdel test2 删除 组test2 4,查看组 a),查看当前登录用户所在 ...
分类:
系统相关 时间:
2017-03-09 17:00:58
阅读次数:
249
public function test2() { $user_count = M('department')->count(); $page = ceil($user_count / 10000); $fp = fopen('c:\file.csv', 'w'); for ($p = 1; $p ... ...
分类:
Web程序 时间:
2017-03-02 19:25:12
阅读次数:
394
import java.io.File; public class Test2 { /** * 需求:2,从键盘接收一个文件夹路径,删除该文件夹 * 删除该文件夹 * 分析: * 1,获取该文件夹下的所有的文件和文件夹 * 2,遍历数组 * 3,判断是文件直接删除 * 4,如果是文件夹... ...
分类:
其他好文 时间:
2017-02-17 20:07:40
阅读次数:
119