上一页 1 ··· 282 283 284 285 286 287 288 289 290 ··· 295 下一页
摘要: 找了02,03,04三台机器,04做主,02做从,03做客户端。 都使用jumbo install redis安装了Redis(server+client)。 在 02 从的 ~/.jumbo/etc/redis.conf 里 slaveof <masterip> 6379 在04 主的 ~/.ju 阅读全文
posted @ 2016-10-05 17:41 blcblc 阅读(2636) 评论(0) 推荐(0)
摘要: 转载自文章 http://blog.me115.com/2013/12/19/redis-e5-9c-a8-e6-96-b0-e6-b5-aa-e5-be-ae-e5-8d-9a-e4-b8-ad-e7-9a-84-e5-ba-94-e7-94-a8/ 另有 Redis中的Hash: http:// 阅读全文
posted @ 2016-10-05 15:43 blcblc 阅读(844) 评论(0) 推荐(0)
摘要: http://www.cqcb.com/reading/2016-10-04/199279_pc.html 有时候, 一些深刻的道理, 仅需一幅小小的道理便可说明。 你, 看明白了吗? 图一: 没有行动,懒惰就会生根发芽! 没有梦想,堕落就会生根发芽! 时间越长,根就越来越深! 到时候想站起来就会是 阅读全文
posted @ 2016-10-05 12:02 blcblc 阅读(216) 评论(0) 推荐(0)
摘要: 分享的PPT在如下网址: http://www.doc88.com/p-4199037770087.html 秒杀场景下mysql的低效原因和改进 另外有一个篇文章是针对以上内容的总结: http://blog.csdn.net/jiao_fuyou/article/details/15504777 阅读全文
posted @ 2016-10-05 11:47 blcblc 阅读(1925) 评论(0) 推荐(0)
摘要: http://blog.sina.com.cn/s/blog_645f8e970100qvd8.html 阅读全文
posted @ 2016-10-04 21:09 blcblc 阅读(759) 评论(0) 推荐(0)
摘要: 安装Symfony,使用 brew install homebrew/php/symfony-installer 开始一直下载不了包,我手动浏览器下载了几个,发现好像都是Permission问题,运行了下面的命令: sudo chown -R $(whoami) /Users/baidu/Libra 阅读全文
posted @ 2016-10-04 19:50 blcblc 阅读(2347) 评论(0) 推荐(0)
摘要: 注意,第一种用法,涉及到一些Java的知识。就是采用Object作为HashMap的key的时候,需要重载这个Class的 equals 和 hashCode 这两个方法。其中equals需要判断一下比较元素的类型,而hashCode 里面可以采用 String.valueOf(val).hashC 阅读全文
posted @ 2016-10-04 12:17 blcblc 阅读(556) 评论(0) 推荐(0)
摘要: https://leetcode.com/problems/longest-palindrome/ public class Solution { public int longestPalindrome(String s) { char []charr = s.toCharArray(); Arrays.sort(charr); int... 阅读全文
posted @ 2016-10-03 21:35 blcblc 阅读(272) 评论(0) 推荐(0)
摘要: 安装nginx,还是在mac上面用brew比较方便。 首先,brew install nginx,提示改权限 sudo chown -R $(whoami) /usr/local 然后brew install nginx,下载一些包始终太慢。 然后查看 brew --cache,发现缓存在 /Use 阅读全文
posted @ 2016-10-02 03:44 blcblc 阅读(3304) 评论(0) 推荐(0)
摘要: 关于项目,我出两个练手题目: 一、多机数据处理。有 10 台机器,每台机器上保存着 10 亿个 64-bit 整数(不一定刚好 10 亿个,可能有上下几千万的浮动),一共约 100 亿个整数(其实一共也就 80GB 数据,不算大,选这个量级是考虑了 VPS 虚拟机的容量,便于实验)。编程求出: 1. 阅读全文
posted @ 2016-10-02 03:11 blcblc 阅读(395) 评论(0) 推荐(0)
上一页 1 ··· 282 283 284 285 286 287 288 289 290 ··· 295 下一页