php
appcanLiYunLong
简洁 不冗余
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
TCP通信时 编码解码校验
class TcpPack{ const LAST = '0d0a'; const PRE = '$LT'; const CRC8 = [ 'name' => 'CRC-8', 'init' => 0x00, 'xor_out' => 0x00, 'ref_out' => FALSE, 'poly' => 0x7, 'ref_in' => FALSE,原创 2020-09-12 20:38:11 · 601 阅读 · 0 评论 -
支付宝打款代码警告Invalid characters passed for attempted conversion, these have been ignored at file
AopCertClient.php 111行修改$ssl[$i] = openssl_x509_parse($array[$i] . "-----END CERTIFICATE-----"); if (strpos($ssl[$i]['serialNumber'], '0x') === 0) { $ssl[$i]['serialNumber'] ...原创 2020-05-01 10:47:59 · 3669 阅读 · 3 评论 -
基于最小Linux静态编译最新版php7.4.5+swoole4.5的docker镜像
最近发现之前基于centos编译的swoole环境随着功能的扩展越来越大,下决心编译一款轻量的docker包。上镜像链接基础镜像包大小:171M环境:php7.4.5 + swoole4.5.0 + redis5.2docker pull registry.cn-hangzhou.aliyuncs.com/liyunlong/php7.4.5_swoole_4.5:latest开启的...原创 2020-04-23 20:03:45 · 1768 阅读 · 0 评论 -
简单的WebSocket fd与uid 缓存管理
/** * 维护fd=uid的有序集合 * @param string $model * @param int $fd * @param int $uid * @param bool $isDel 清理fd 此时必须传fd * @return bool|string|void * @throws \EasySwoole\Red...原创 2020-04-02 19:13:42 · 1789 阅读 · 0 评论 -
docker 启动报错: standard_init_linux.go:211: exec user process caused "no such file or directory"
参考这篇文章恍然大明白;文章地址原创 2020-01-06 16:22:05 · 2161 阅读 · 1 评论 -
git 把本地项目提交到远程创建好的仓库
https://www.cnblogs.com/zhangsanfeng/p/10163968.html原创 2019-11-03 15:43:44 · 231 阅读 · 0 评论 -
phpStrom 追踪跟反追踪
Ctrl + B 进入Ctrl + Alt + ← 返回进入点原创 2019-10-22 09:18:28 · 508 阅读 · 0 评论 -
MongoDb非正常关闭后重启遇到问题
/*********MongoDB重启遇到错误、about to fork child process, waiting until server is ready for connections.forked process: 10117ERROR: child process failed, exited with error number 48To see additional in...原创 2019-05-29 10:02:55 · 2628 阅读 · 1 评论 -
查看swoole当前版本
php -r ‘echo SWOOLE_VERSION;’原创 2019-01-18 16:43:19 · 1643 阅读 · 1 评论 -
php 僵尸进程
查看僵尸进程ps -A -ostat,ppid,pid,cmd |grep -e ‘^[Zz]’打印结果Z+ 7136 7137 [php] <defunct>原创 2019-01-23 11:07:17 · 618 阅读 · 0 评论 -
【内部流出,勿做商用】今日教大家如何抢聚划算
聚划算插件帮你抢到物美价廉的商品,摆脱双十一的种种熬夜奋斗不废话看效果图插件抢购特点预增加功能抢购提醒注意事项不废话看效果图设定好你要够买商品的抢购时间,聚划算商品会自动设定为开团时间选择好你够买商品的款式 数量等属性加入抢购,点击右上角插件图标就能看到你的抢购列表跟抢购结果插件抢购特点性能高,在抢购列表为空的时候 ,插件几乎不做任何事情处于空闲状态。当有抢购商品时,插件会根...原创 2019-06-17 17:58:27 · 2027 阅读 · 2 评论 -
swoole 学习之旅
1.php7源码安装1).获取源码 wget http://59.80.44.98/cn2.php.net/distributions/php-7.3.2.tar.gz2).解压 tar -xjf php-7.2.10.tar.bz2 cd php-7.2.103).配置 ./configure --prefix=/usr/local/php 遇到问题: yum insta...原创 2019-03-06 11:08:00 · 532 阅读 · 0 评论 -
docker 学习之旅
1.安装dockeryum -y updateyum install -y docket2.管理dockerservice docker start|stop3.docker镜像地址修改//https://www.daocloud.io/curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://...原创 2019-03-06 11:08:23 · 973 阅读 · 0 评论 -
红包秒杀中注意的问题
数据表查询中的细节更新红包记录字段设计使用无符号更新时使用乐观锁update red_goods set remain_quantity = CASE case_valuewhen remain_quantity >= 扣减数量或者金额 then remain_quantity - 扣减的数量或者金额else remain_quantity end casewhere id ...原创 2019-03-10 14:49:36 · 277 阅读 · 0 评论 -
thinkphp5 生成pdf
安装composer require tecnickcom/tcpdf原创 2019-04-14 18:23:23 · 318 阅读 · 0 评论 -
easyswoole升级到3.2.3 遇到的问题
关于热重载时 注册子进程时 启动报错PHP Fatal error: Uncaught ArgumentCountError: Swoole\Process::__construct() expects at most 3 parameters, 4 given in /data/www/es/vendor/easyswoole/component/src/Process/AbstractPr...原创 2019-05-20 12:04:50 · 2090 阅读 · 0 评论 -
PHP命令行中的使用技巧
PHP技巧php命令行中的一些使用技巧查看模块查看配置查看某个模块是否成功安装php命令行中的一些使用技巧查看模块php -m查看配置php -i查看某个模块是否成功安装php --ir swoole...原创 2018-12-16 10:21:47 · 253 阅读 · 0 评论
分享