- 博客(10)
- 收藏
- 关注
原创 Memcached 命令行常用命令
1. 通过telnet以命令行的方式访问memcached服务器: telnet host port.eg:telnet 127.0.0.1 11211 2. 退出memcached命令行: quit 3.查看memcached实例的状态:.stats 4. 查看slab: stats slabs 5. 查看item:stats items 6. 查看sla...
2016-04-13 12:11:58
322
原创 linux 常用命令收集(持续更新)
记录下工作中常用的linux命令。 [list=1] [*]查询某个进程的运行时间:ps -o %t -p pid [*]复制所有文件:(cd /source/directory && tar cf - . ) | (cd /dest/directory && tar xpvf -) [*]按连接数查看客户端IP:netstat -ntu | awk '{print $5}' | cut ...
2015-05-30 17:52:36
204
原创 Linux sort 命令(转载)
本周在写ftp数据同步脚本的时候,查找资料,发现一篇写sort的blog写得很赞,收获很大。 地址为:[url]http://roclinux.cn/?p=1472[/url] 版权属原作者,也在此表示感谢。...
2015-05-30 13:48:13
164
原创 如何查看linux系统的发行版(distribution)和版本
查看linux的发行版(RedHat、ubuntu、suse...)及版本号的方法: [list] lsb_release -a cat /etc/issue uname -a cat /proc/version [/list]
2015-05-16 10:33:23
2016
原创 Junit参数化测试报No tests found Matching Methed
今天在用Junit进行单元测试的时候,遇到一个诡异的问题。测试代码如下: [b]Java类:Calculate.java[/b] [code="java"] public class Calculate { public int sum(int var1, int var2) { System.out.println("Adding values " + ...
2015-05-04 21:09:14
584
原创 ubuntu安装memcache及基本命令使用
一、Memcache介绍 memcache是一款高性能、分布式的内存对象缓存系统。最初用于通过减轻数据库的负载来提升动态web应用程序的性能。详细介绍可参考官网:http://memcached.org/ 目前工作中使用的memcache是公司的memcache集群,通过xmemcached(memcache客户端的java实现之一)和memcache集群交互。今天在自己...
2015-04-11 14:00:11
290
原创 Python String Operation Basics
First of all,python strings can not be changed,because they are immutable. String escape 'Isn\'t,he said' "Isn\"t,he said" more readable string print("Isn\"t,he said") do...
2014-07-03 21:37:36
201
原创 Javascript Array (from javascript:the good parts)
Confusion A common error in JavaScript programs is to use an object when an array is required or an array when an object is required. The rule is simple: when the property names are small sequent...
2014-06-18 22:31:30
160
原创 Adapter
[align=center]Adapter[/align] Intent Convert the interface of a class into another interface that clients expect.Adatper let classes work together that couldn't otherwise because of incompatibl...
2013-04-20 09:35:31
127
原创 策略模式
[align=center]Strategy pattern[/align] [b]Definition:[/b] The strategy pattern defines a family of algorithms,encapsulate each one,and makes them interchangeable.Strategy ...
2013-04-05 20:17:03
124
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅