2015年9月30日
摘要:
ls 命令很可能是用户最常使用的命令,通过 ls 命名可以查看目录内容,确定各种重要文件和目录的属性。命令格式ls [OPTION]... [FILE]...命令参数-a, --all 列出所有文件,包括以点号开头的文件-A, --almost-all 列出所有文件,但不包括 . 和 ..--b...
阅读全文
posted @ 2015-09-30 11:10
huey2672
阅读(1405)
推荐(0)
2015年9月29日
摘要:
netstat 程序可以用于查看不同的网络设置及数据。通过使用其丰富的参数选项,我们可以查看网络启动过程的许多特性。命令格式netstat [options]命令参数-r, --route 显示内核路由表。-g, --groups 显示 IPv4 和 IPv6 的 IGMP 组播组成员关系信息。...
阅读全文
posted @ 2015-09-29 20:10
huey2672
阅读(1203)
推荐(0)
摘要:
Maven Dependency: redis.clients jedis 2.7.2 jar compileUse:Jedis jedis = new Jedis("127.0.0.1", 6379);jedis.set("foo", "bar");String va...
阅读全文
posted @ 2015-09-29 14:48
huey2672
阅读(222)
推荐(0)
2015年9月26日
摘要:
PSUBSCRIBE pattern [pattern ...]Listen for messages published to channels matching the given patternsPUBSUB subcommand [argument [argument ...]]Inspec...
阅读全文
posted @ 2015-09-26 14:00
huey2672
阅读(202)
推荐(0)
摘要:
BGREWRITEAOFAsynchronously rewrite the append-only fileBGSAVEAsynchronously save the dataset to diskCLIENT KILL [ip:port] [ID client-id] [TYPE normal|...
阅读全文
posted @ 2015-09-26 13:48
huey2672
阅读(459)
推荐(0)
摘要:
AUTH passwordAuthenticate to the serverMore:http://redis.io/commands/auth,http://www.redis.cn/commands/auth.htmlECHO messageEcho the given string127.0...
阅读全文
posted @ 2015-09-26 11:40
huey2672
阅读(453)
推荐(0)
2015年9月25日
摘要:
DISCARD Discard all commands issued after MULTI More: http://redis.io/commands/discard, http://www.redis.cn/commands/discard.html EXEC Execute all com
阅读全文
posted @ 2015-09-25 14:50
huey2672
阅读(278)
推荐(0)
摘要:
ZADD key score member [score member ...]Add one or more members to a sorted set, or update its score if it already exists127.0.0.1:6379> ZADD foo 1 on...
阅读全文
posted @ 2015-09-25 14:23
huey2672
阅读(454)
推荐(0)
摘要:
SADD key member [member ...]Add one or more members to a set127.0.0.1:6379> SADD foo hello(integer) 1127.0.0.1:6379> SADD foo world(integer) 1127.0.0....
阅读全文
posted @ 2015-09-25 09:56
huey2672
阅读(411)
推荐(0)
2015年9月24日
摘要:
HDEL key field [field ...]Delete one or more hash fields127.0.0.1:6379> HSET book.1 title helloworld(integer) 0127.0.0.1:6379> HEXISTS book.1 title(in...
阅读全文
posted @ 2015-09-24 21:00
huey2672
阅读(343)
推荐(0)