上一页 1 2 3 4 5 6 ··· 15 下一页
摘要: $headers = array( //"Content-type:application/json;charset='utf-8'", "Cache-Control:no-cache", "Pragma:no-cache", //"accept-charset:utf-8", "Accept-En 阅读全文
posted @ 2017-11-17 18:25 jking10 阅读(3309) 评论(0) 推荐(0) 编辑
摘要: 做个swoole http_server和ngixn+php7-fpm测试 nginx swoole卓越的性能让我惊呆了 nginx swoole卓越的性能让我惊呆了 如需应用可nginx反代, swoole作为http_server, 不用php-fpm location ~ \.php$ { p 阅读全文
posted @ 2017-11-14 16:51 jking10 阅读(653) 评论(0) 推荐(0) 编辑
摘要: https://segmentfault.com/a/1190000007614502 阅读全文
posted @ 2017-11-14 16:37 jking10 阅读(665) 评论(0) 推荐(0) 编辑
摘要: 并发连接数 = pv / 统计时间 * 页面衍生连接次数 * http响应时间 * 因数 / 其他web服务器 数量 pv = 并发连接数 * 统计时间 * 其他web服务器 数量/ 页面衍生连接次数 / http响应时间 / 因数 解释: 统计时间 : pv统计的总时间,单位秒,要计算一天的pv就 阅读全文
posted @ 2017-11-14 16:36 jking10 阅读(603) 评论(0) 推荐(0) 编辑
摘要: 在PHP中我们可以通过str_split 将字符串转换为数组,但是却对中文无效,下面记录一下个人将中文字符串转换为数组的方法。 用到的PHP函数 mb_strlen — 获取字符串的长度 function ch2arr($str){ $length = mb_strlen($str, 'utf-8' 阅读全文
posted @ 2017-08-17 13:55 jking10 阅读(1438) 评论(0) 推荐(0) 编辑
摘要: 之前用Sphinx(coreseek)几次,相对正常 这次用到,记录些问题 1.coreseek好像没人维护了吗,有点可惜。 2.centOS7 编译和coreseek版本有点问题,需要修改编译文件 3.操作系统内核,gcc版本,编译可能会遇到问题;一般更新下gcc最新版 4.php7的sphinx 阅读全文
posted @ 2017-08-16 16:38 jking10 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 1 SSL: certificate subject name 'WMSvc-GWAMSERVER02' does not match target host name 把curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); 2 Curl error: S 阅读全文
posted @ 2017-08-02 14:31 jking10 阅读(1769) 评论(0) 推荐(0) 编辑
摘要: <?php//服务器信息$server = 'udp://127.0.0.1:7002';// UDP Server$msgEof = "\n";$socket = stream_socket_server($server, $errno, $errstr, STREAM_SERVER_BIND); 阅读全文
posted @ 2017-07-28 12:19 jking10 阅读(320) 评论(0) 推荐(0) 编辑
摘要: Mysql升级到5.7+之后一直出现Table 'performance_schema.session_status' doesn't exist错误,解决办法 1. 进入Mysql的安装目录的bin文件夹 2. 打开cmd进入该目录执行mysql_upgrade -u root -p --forc 阅读全文
posted @ 2017-03-22 23:49 jking10 阅读(11324) 评论(0) 推荐(0) 编辑
摘要: CURLOPT_DNS_USE_GLOBAL_CACHE 启用时会启用一个全局的DNS缓存,此项为线程安全的,并且默认启用。CURLOPT_DNS_CACHE_TIMEOUT 设置在内存中保存DNS信息的时间,默认为120秒。 1)fopen/file_get_contents 每次请求远程URL中 阅读全文
posted @ 2017-03-21 18:16 jking10 阅读(8202) 评论(1) 推荐(2) 编辑
上一页 1 2 3 4 5 6 ··· 15 下一页