摘要: 1打开文件,添加如下一段话 vim ~/.bashrc alias grep='grep --color' 2退出保存 source ~/.bashrc 只有执行grep命令搜索的时候,关键字就会有颜色了也可以临时查询的时候,添加颜色 ps -ef | grep --color "timer" null 阅读全文
posted @ 2017-06-16 14:23 edgedance 阅读(13487) 评论(0) 推荐(0) 编辑
摘要: crond 是linux用来定期执行程序的命令。当安装完成操作系统之后,默认便会启动此 任务调度命令。crond命令每分锺会定期检查是否有要执行的工作,如果有要执行的工作便会自动执行该工作。1语法 * * * * * command 分 时 日 月 周 命令 第1列表示分钟1~59 每分钟用*或者 */1表示 第2列表示小时1~23(0表示0点)... 阅读全文
posted @ 2017-06-16 14:23 edgedance 阅读(4138) 评论(0) 推荐(1) 编辑
摘要: Spring controller 如下@Controller public class SimpleController { @ResponseBody @RequestMapping(value = "/hotel") public String hotel() { return "{\"status\":0,\"errmsg\":null,\"dat... 阅读全文
posted @ 2017-06-16 11:03 edgedance 阅读(7673) 评论(1) 推荐(0) 编辑
摘要: 1. 5.6版本及之后的版本的base64主要就是两个mysql内部函数to_base64和from_base64,使用也很简单,如下:5.6之前不支持mysql> select version(); +-----------+ | version() | +-----------+ | 5.7.11 | +-----------+ 1 row in set (0.00 sec) mysq... 阅读全文
posted @ 2017-06-16 11:00 edgedance 阅读(6913) 评论(0) 推荐(0) 编辑
摘要: Java RMI 指的是远程方法调用 (Remote Method Invocation)。它是一种机制,能够让在某个 Java 虚拟机上的对象调用另一个 Java 虚拟机中的对象上的方法。可以用此方法调用的任何对象必须实现该远程接口。 在spring整合Rmi中: 服务端使用了org.spring 阅读全文
posted @ 2017-06-11 04:43 edgedance 阅读(456) 评论(0) 推荐(0) 编辑
摘要: public class Test { public static void main(String[] args){ String filePath = "E:\\softoon\\workspace_softoon\\TestMobile\\src\\1.docx"; String outFilePath = "E:\\softoon\\wor... 阅读全文
posted @ 2017-06-10 21:06 edgedance 阅读(11906) 评论(0) 推荐(0) 编辑
摘要: 1语法 grep -[acinv] '搜索内容串' filename-a 以文本文件方式搜索-c 计算找到的符合行的次数-i 忽略大小写-n 顺便输出行号-v 反向选择,即找 没有搜索字符串的行 -E 大写 ,搜索内容串支持正则2实例 搜索有the的行,并输出行号 $grep -n 'the' regular_express.txt 搜索没有the的行,并... 阅读全文
posted @ 2017-06-10 20:08 edgedance 阅读(2649) 评论(0) 推荐(0) 编辑
摘要: 知道端口号,如何查看应用位置 [root@localhost sbin]# netstat -nlp |grep 8080 tcp 0 0 :::8080 :::* LISTEN 2357/java [root@localhost sbin]#... 阅读全文
posted @ 2017-06-10 19:50 edgedance 阅读(902) 评论(0) 推荐(1) 编辑
摘要: 在MySQL中删除一张表或一条数据的时候,出现[Err] 1451 -Cannot delete or update a parent row: a foreign key constraint fails (...)这是因为MySQL中设置了foreign key关联,造成无法更新或删除数据。可以通过设置FOREIGN_KEY_CHECKS变量来避免这种情况。我们可以使用 SET FOR... 阅读全文
posted @ 2017-06-10 19:45 edgedance 阅读(16453) 评论(0) 推荐(5) 编辑
摘要: telnet :和端口通信 telnet 192.168.196.200 20退出: ctrl+] 然后在telnet 命令行输入 quit 阅读全文
posted @ 2017-06-10 19:43 edgedance 阅读(259) 评论(0) 推荐(0) 编辑