摘要: 1、通过mysql自身 删除sleep程序 set global wait_timeout=1002、查看mysql的一些属性:show variables like '%timeout'; 阅读全文
posted @ 2013-12-30 15:57 prison 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 启动redis打开运行窗口F:\>cd redis-2.0.2F:\redis-2.0.2>redis-server.exe redis.conf[2944] 15 Jun 22:44:29 * Server started, Redis version 2.0.2[2944] 15 Jun 22:44:29 * DB loaded from append only file: 0 seconds[2944] 15 Jun 22:44:29 * The server is now ready to accept connections on port379[2944] 15 Jun 阅读全文
posted @ 2013-12-30 11:31 prison 阅读(502) 评论(0) 推荐(0) 编辑
摘要: # Redis configuration file example # By default Redis does not run as a daemon. Use 'yes' if you need it. # Note that Redis will write a pid file in /var/run/redis.pid when daemonized. daemonize no # When run as a daemon, Redis write a pid file in /var/run/redis.pid by default. # You can sp. 阅读全文
posted @ 2013-12-30 11:23 prison 阅读(207) 评论(0) 推荐(0) 编辑
摘要: /** * redis简单测试 * redis-server.exe redis.conf * @author xzm * */public class RedisTest { public static void main(String[] args) { Jedis redis = new Jedis("localhost", 6379); redis.hset("mytest", "1", "a"); redis.hset("mytest", "2", "aa 阅读全文
posted @ 2013-12-30 10:45 prison 阅读(230) 评论(0) 推荐(0) 编辑