摘要: 1、安装 2、使用 cat test.json https://stedolan.github.io/jq/manual/#Invokingjq https://github.com/stedolan/jq/wiki/Cookbook 阅读全文
posted @ 2018-12-24 14:53 wangxusummer 阅读(2742) 评论(0) 推荐(0) 编辑
摘要: fwrite(): send of 13 bytes failed with errno=32 Broken pipe fwrite(): send of 21 bytes failed with errno=104 Connection reset by peer 用 rabbitmq 做消息队列 阅读全文
posted @ 2018-07-17 17:06 wangxusummer 阅读(1277) 评论(0) 推荐(0) 编辑
摘要: 公司大部分项目是laravel框架,但有些是yii框架,这两个框架之间有消息需要通信,比如在yii框架发布消息,laravel框架中的队列去处理,用redis作为消息连接纽带 laravel 队列原理是将类实例化后再序列化存到redis中(序列化的类只存储属性值)。消费的时候直接反序列化得到类和属性 阅读全文
posted @ 2018-06-26 20:25 wangxusummer 阅读(664) 评论(0) 推荐(0) 编辑
摘要: 执行一个脚本 发现报语法错误,但是在其他机器上运行都没有问题 唯一的区别就是 一个是centos机器 报错的是ubuntu 网上搜索了一下 因为Ubuntu默认的sh是连接到dash的,又因为dash跟bash的不兼容所以出错了.执行时可以把sh换成bash文件名.sh来执行 解决方案: 直接 $b 阅读全文
posted @ 2018-04-13 11:40 wangxusummer 阅读(691) 评论(0) 推荐(0) 编辑
摘要: 1:提示找不到gdbm.h头文件 解决方法: 2 invalid conversion from ‘const char*’ to ‘char*’ 解决方法: 3 提示找不到libgdbm.a文件 解决方法: 阅读全文
posted @ 2018-04-13 11:30 wangxusummer 阅读(703) 评论(0) 推荐(0) 编辑
摘要: 重新构建 可用 vagrant destroy 删除box vagrant box remove boxname mysql默认用户账号 用户名:homestead 密码:secret 备注:尽量使用最新版本的 vagrant 和 virtualbox 不要用 vagrant init 新生成的Va 阅读全文
posted @ 2018-04-10 21:08 wangxusummer 阅读(1006) 评论(0) 推荐(0) 编辑
摘要: 0. Prepare cert.pfx and its password, verify_sign_acp.cer 1. Get Private Key $ openssl pkcs12 -in cert.pfx -nocerts -nodes | openssl rsa -out private_ 阅读全文
posted @ 2017-11-24 16:00 wangxusummer 阅读(239) 评论(0) 推荐(0) 编辑
摘要: /** * 删除当前url中指定参数 * @param names 数组或字符串 * @returns {string} */ function funcUrlDel(names) { if(typeof(names)=='string'){ names = [names]; } ... 阅读全文
posted @ 2017-08-02 16:58 wangxusummer 阅读(8897) 评论(0) 推荐(0) 编辑
摘要: like null 从一张表中获取一行/一列 DB:raw 阅读全文
posted @ 2017-04-20 19:46 wangxusummer 阅读(370) 评论(0) 推荐(0) 编辑
摘要: #include #include #include jmp_buf jb; void f1() { printf("进入f1()\n"); if(0/*正确执行*/){ } else { longjmp(jb,1); } printf("退出f1()\n"); } void f2() { printf("进入f2()\n... 阅读全文
posted @ 2017-03-14 15:19 wangxusummer 阅读(212) 评论(0) 推荐(0) 编辑