摘要: PS: 这里其实是利用了Redis的lua script;redis 5.0 会实现zPopMin 跟zPopMax 阅读全文
posted @ 2018-06-05 17:10 豆腐居士 阅读(515) 评论(1) 推荐(0) 编辑
摘要: '0.0.0.0', 'port' => 5672, 'login' => 'wangwang', 'password' => '123456' ]); if (!$conn->connect()) { exit('fail'); } ... 阅读全文
posted @ 2018-05-30 20:18 豆腐居士 阅读(972) 评论(0) 推荐(0) 编辑
摘要: 1.安装 rabbitmq-c下载地址:https://github.com/alanxz/rabbitmq-c> mkdir build > cd build> cmake -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DOPENSSL_LIBRARIES= 阅读全文
posted @ 2018-05-30 10:57 豆腐居士 阅读(265) 评论(0) 推荐(0) 编辑
摘要: php redis subscribe Uncaught exception 'RedisException' with message 'read error on connection' 阅读全文
posted @ 2017-11-20 18:27 豆腐居士 阅读(4505) 评论(1) 推荐(0) 编辑
摘要: Install semanage tools: sudo yum -y install policycoreutils-python Allow port 88 for httpd: sudo semanage port -a -t http_port_t -p tcp 88 Allow port 8445 for httpd: sudo semanage port -a -t htt... 阅读全文
posted @ 2017-03-10 16:09 豆腐居士 阅读(574) 评论(0) 推荐(0) 编辑
摘要: 安装php7.0.15 brew install homebrew/php/php70 brew install homebrew/php/php70-mcrypt brew install homebrew/php/php70-redis brew install homebrew/php/php 阅读全文
posted @ 2017-02-22 11:52 豆腐居士 阅读(5913) 评论(0) 推荐(0) 编辑
摘要: 该字符中含了ASCII码ETB控制符,即\x17导致json解析失败 (截图中显示ETB是因为用了Sublime text2) 解决方法如下:去掉0-31的控制符再进行decode 阅读全文
posted @ 2016-11-02 13:26 豆腐居士 阅读(4791) 评论(0) 推荐(0) 编辑
摘要: //openresty安装 http://openresty.org/ brew updatebrew install pcre openssl ./configure --prefix=/usr/local/openresty --with-cc-opt="-I/usr/local/opt/ope 阅读全文
posted @ 2016-09-27 09:28 豆腐居士 阅读(2324) 评论(0) 推荐(0) 编辑
摘要: Beanstalkd中文协议 总括 https://pmatseykanets.github.io/beanstalkd-docs/ beanstalkd协议基于ASCII编码运行在tcp上。客户端连接服务器并发送指令和数据,然后等待响应并关闭连接。对于每个连接,服务器按照接收命令的序列依次处理并响 阅读全文
posted @ 2016-03-01 14:14 豆腐居士 阅读(676) 评论(0) 推荐(0) 编辑
摘要: 1. 安装This is beanstalkd, a fast, general-purpose work queue.See http://kr.github.io/beanstalkd/ for general info. QUICK START $ make $ ./beanstalkd al 阅读全文
posted @ 2016-03-01 14:06 豆腐居士 阅读(928) 评论(0) 推荐(0) 编辑