1 master/slave server 启动 利用默认redis.conf配置文件启动master server,端口6379 。 [7304] 29 Aug 09:57:26 - 0 clients connected (0 slaves), 673996 bytes in use [7304] 29 Aug 09:57:31 - DB 0: 15 key...
分类:
其他好文 时间:
2014-08-29 11:18:58
阅读次数:
238
新增两块硬盘,来进行实验:
[root@jp ~]# fdisk -l
Disk /dev/sda: 107.3 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot ...
分类:
系统相关 时间:
2014-08-28 09:42:29
阅读次数:
424
from:http://www.cnblogs.com/Gildor/archive/2010/12/13/1904060.htmlHttpWebRequest以UTF-8编码写入内容时发生“Bytes to be written to the stream exceed the Content-L...
分类:
Web程序 时间:
2014-08-27 14:29:07
阅读次数:
238
String newStr = new String(oldStr.getBytes(), "UTF-8");java中的String类是按照unicode进行编码的,当使用String(byte[] bytes, String encoding)构造字符串时,encoding所指的是bytes中的...
分类:
编程语言 时间:
2014-08-25 11:40:24
阅读次数:
287
FREENAME free - Display amount of free and used memory in the system 显示内存的使用情况SYNOPSIS free [options] -b, --bytes 字节单位显示 -k, --kilo ...
分类:
其他好文 时间:
2014-08-24 20:51:53
阅读次数:
313
实现原理:用httpConnection.setRequestProperty("RANGE", "bytes= xxx-xxx");获取指定的数据块用RandomAccessFile实现文件随机访问,写入指定数据块到文件.关键事项:获取远程文件大小,根据文件大小确定下载线程个数(可固定线程数,也可...
分类:
编程语言 时间:
2014-08-23 12:38:30
阅读次数:
252
企业级应用系统的建设,通常将系统和数据分别存储,并建立raid。新装的CentOS6.5,需要挂载数据盘,并且能够系统启动自动挂载该数据盘。
1、手动挂载磁盘
查看磁盘分区信息,执行fdisk命令
[root@tsp-rls-webservice tsp]# fdisk -l
Disk /dev/sdb: 1476.5 GB, 1476529225728 bytes
25...
分类:
其他好文 时间:
2014-08-21 19:22:54
阅读次数:
215
struct sockaddr {unsigned short sa_family; /* address family, AF_xxx */char sa_data[14]; /* 14 bytes of protocol address */};sa...
分类:
其他好文 时间:
2014-08-21 16:28:24
阅读次数:
221
一、最简单的做法:参考(深入理解计算机系统中文版第二版,P28,show_bytes)转化成usigned char*的byte_pointer;然后遍历输出每个字节的值,即可判断。输入可以是任意一个数。类似于:http://blog.csdn.net/yuucyf/article/details/...
分类:
其他好文 时间:
2014-08-20 20:58:22
阅读次数:
209
当面临将一个大文件进行切分时,linux的split命令是很好的选择。它包含多种参数,支持按行、大小进行切分。
split命令的语法如下:
split [--help][--version][-a ][-b][-C ][-l ][要切割的文件][输出文件名前缀]对应的参数描述如下:
-a, --suffix-length=N
使用的后缀长度 (默认为 2)
-b, --bytes=S...
分类:
系统相关 时间:
2014-08-18 18:42:52
阅读次数:
260