1:解压redis目录到 /usr/local 目录下 2: ps -ef|grep redis 查看有没有redis进程,有的话关闭redis 3:搭建集群准备 (三主三从,伪集群) 3.1 进入 cd /usr/local/ 3.2 mkdir redis_cluster 3.3 cd redi ...
分类:
其他好文 时间:
2020-04-14 10:32:06
阅读次数:
64
$()与 ` ` touch $(date +%F).log { } touch {1..3}.file touch{1..10..2}.file rm -rf .bash_history history -c history !编号 whatis 查命令是啥,然后用man命令 /etc/issue ...
分类:
其他好文 时间:
2020-04-14 00:52:08
阅读次数:
70
load file 读取无效时 连接mysql写入: mysql> load data local infile "/etc/passwd" into table test FIELDS TERMINATED BY '\n'; //test 表名 或者 "C:/Windows/win.ini" Qu ...
分类:
数据库 时间:
2020-04-14 00:47:52
阅读次数:
95
语言 Batch 前言 以前我一直不明白为什么那么多应用程序在读取“文件路径”作为参数时为什么总是在正式的“文件路径”前要加上个“ f”、" d"、" file"以及“ path”之类的引导参数,以为只是纯粹的装帅,或者增加程序使用的代入感,亦或者是便于理解之类的。所以,我写的程序中也常常会带一些引 ...
分类:
其他好文 时间:
2020-04-14 00:42:23
阅读次数:
64
二进制数据,在Java中需要使用流对象去表示,通常文件采用FileInputStream和OutputStream对象 一、存放一个二进制数据,采取InputStream对象 例如给数据库中存一个图片:异常和工具类没给请见谅 @Test public void test4() throws Exce ...
分类:
数据库 时间:
2020-04-13 18:16:37
阅读次数:
83
1.创建upload.html文件 <form action='/upload' method='post' enctype='multipart/form-data'> 头像:<input type='file' name='userImg'/><br/> <input type='submit' ...
分类:
Web程序 时间:
2020-04-13 16:51:25
阅读次数:
84
1:WannaSmile 题目描述: I accidentally executed this weird file that encrypted my important files! please help me understand what it does ssh wannasmile@ch ...
分类:
其他好文 时间:
2020-04-13 15:26:38
阅读次数:
110
从服务器直接返回 内容 给客户端的话 要写很多程序,很麻烦。服务器把客户端的请求 托管给jsp,再又jsp返回给客户端就比较容易。 .jsp file 要建在Web Content目录下!!! 写法: req.getRequestDispatcher(path); dispatcher 调度程序 , ...
分类:
编程语言 时间:
2020-04-13 13:54:31
阅读次数:
76
1.首先要确保MySQL的服务是开启的,如果没有开启,可以在命令行开启MySQL的服务,命令如下所示: 查看mysql状态 sudo service mysql status 启动mysql服务 sudo service mysql start 2.打开IDEA,然后点击右侧边栏的Database ...
分类:
数据库 时间:
2020-04-13 12:43:23
阅读次数:
153
[TOC] 写Excel 实体Dto 自定义工具类ExcelUtil 接口调用 导出效果展示 具体方法查看官网: https://www.yuque.com/easyexcel/doc/easyexcel ...
分类:
其他好文 时间:
2020-04-13 12:31:43
阅读次数:
983