摘要:
PS: 这里其实是利用了Redis的lua script;redis 5.0 会实现zPopMin 跟zPopMax 阅读全文
摘要:
'0.0.0.0', 'port' => 5672, 'login' => 'wangwang', 'password' => '123456' ]); if (!$conn->connect()) { exit('fail'); } ... 阅读全文
摘要:
1.安装 rabbitmq-c下载地址:https://github.com/alanxz/rabbitmq-c> mkdir build > cd build> cmake -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DOPENSSL_LIBRARIES= 阅读全文
摘要:
php redis subscribe Uncaught exception 'RedisException' with message 'read error on connection' 阅读全文
摘要:
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... 阅读全文
摘要:
安装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 阅读全文
摘要:
该字符中含了ASCII码ETB控制符,即\x17导致json解析失败 (截图中显示ETB是因为用了Sublime text2) 解决方法如下:去掉0-31的控制符再进行decode 阅读全文
摘要:
//openresty安装 http://openresty.org/ brew updatebrew install pcre openssl ./configure --prefix=/usr/local/openresty --with-cc-opt="-I/usr/local/opt/ope 阅读全文
摘要:
Beanstalkd中文协议 总括 https://pmatseykanets.github.io/beanstalkd-docs/ beanstalkd协议基于ASCII编码运行在tcp上。客户端连接服务器并发送指令和数据,然后等待响应并关闭连接。对于每个连接,服务器按照接收命令的序列依次处理并响 阅读全文
摘要:
1. 安装This is beanstalkd, a fast, general-purpose work queue.See http://kr.github.io/beanstalkd/ for general info. QUICK START $ make $ ./beanstalkd al 阅读全文