“618美妆专场直播”项目风险管理计划 编制人:张XX(项目经理) 编制日期:2025年6月2日 审批人:周XX(运营部总监 …
“618美妆专场直播”项目需求调研文档 调研周期:2025年5月25日-2025年5月31日 调研负责人:张XX(项目经理) 调研 …
“618美妆专场直播”项目需求管理计划 编制人:张XX(项目经理) 编制日期:2025年6月2日 审批人:周XX(运营部总监 …
“618美妆专场直播”项目进度管理计划 编制人:张XX(项目经理) 编制日期:2025年6月1日 审批人:周XX(运营部总监 …
目前这个build的dockerfile只用在测试开发环境哈,需要优化opcache啥的自己开启一下哈 FROM centos:8 MAINTAINER …
解决: 切换到root用户 执行命令: sysctl -w vm.max_map_count=262144 查看结果: sysctl -a|grep vm.max_map_co …
编译构建go程序 禁止优化 go build -gcflags "-N -l" ... 查看详细的编译过程命令 go build -x ... 补 …
Warning: Undefined variable $img_type in /www/wwwroot/www.zhaohaoblog.com/wp-content/plugins/wpjam-basic/cdn/remote.php on line 86
Warning: Undefined variable $img_type in /www/wwwroot/www.zhaohaoblog.com/wp-content/plugins/wpjam-basic/cdn/remote.php on line 86
先上实现代码 <?php declare(strict_types=1); /** * This file is part of hyperf-tt. * * @link https://git …
问题描述 ubuntu系统安装了一些软件,然后关闭终端重新打开,发现终端输入异常: up键查看历史,历史命令重叠显示 …
Warning: Undefined variable $img_type in /www/wwwroot/www.zhaohaoblog.com/wp-content/plugins/wpjam-basic/cdn/remote.php on line 86
Warning: Undefined variable $img_type in /www/wwwroot/www.zhaohaoblog.com/wp-content/plugins/wpjam-basic/cdn/remote.php on line 86
所需组件 git-svn centos: yum install -y git-svn ubuntu: apt-get install -y git-svn mac: brew install git s …
markdown有点问题""解析不出来,需要修改一下哈~ FROM alpine:latest MAINTAINER zhaohao731869706@163.com ENV LA …
背景 需要做项目迁移时,例如laravel迁移至hyperf时,因为基本上都是一步一步迁移的,仍有例如支付回调等依旧在larav …
特性 Channel 通道 类似于 go 语言的 chan,Channel 可为多生产者协程和多消费者协程模式提供支持。底层自动实现 …
Warning: Undefined variable $img_type in /www/wwwroot/www.zhaohaoblog.com/wp-content/plugins/wpjam-basic/cdn/remote.php on line 86
Warning: Undefined variable $img_type in /www/wwwroot/www.zhaohaoblog.com/wp-content/plugins/wpjam-basic/cdn/remote.php on line 86
6.1 问题汇总 1. Guzzle Http客户端 请求时未记录日志文件,并将日志打印至终端 解决方案: 升级swoole至最新 2. hy …
5.2 Guzzle Http客户端 安装composer包 composer require hyperf/guzzle 配置 在实例化客户端的时候以参数的方式 …
Warning: Undefined variable $img_type in /www/wwwroot/www.zhaohaoblog.com/wp-content/plugins/wpjam-basic/cdn/remote.php on line 86
Warning: Undefined variable $img_type in /www/wwwroot/www.zhaohaoblog.com/wp-content/plugins/wpjam-basic/cdn/remote.php on line 86
5.1 Redis协程客户端 安装composer包 composer require hyperf/redis 配置 在config/autoload/redis.php下 <?p …
Warning: Undefined variable $img_type in /www/wwwroot/www.zhaohaoblog.com/wp-content/plugins/wpjam-basic/cdn/remote.php on line 86
Warning: Undefined variable $img_type in /www/wwwroot/www.zhaohaoblog.com/wp-content/plugins/wpjam-basic/cdn/remote.php on line 86
4.2 配置文件 配置文件所在路径 config/autoload/databases.php 配置文件中的参数 读写分离 <?php return [ 'd …
4.1 须知 与laravel的 Eloquent ORM 操作基本相同 借鉴5.4版本改造,有一些细节上的区别,比如事务等级处理等具体会 …
3.9 AOP 面向切面编程 概念 AOP 为 Aspect Oriented Programming 的缩写,意为:面向切面编程,通过动态代理等技 …
3.8事件 事件机制 事件模式必须基于 PSR-14 去实现。 Hyperf 的事件管理器默认由 hyperf/event 实现,该组件亦可 …
3.7 验证器 与laravel的表单验证基本相同 1. 安装composer类库 composer require hyperf/validation 2. 设置表单 …
3.6 日志 hyperf/logger 组件是基于 psr/logger 实现的,默认使用 monolog/monolog 作为驱动,在 hyperf-skeleton …
3.5 异常处理 在 Hyperf 里,业务代码都运行在 Worker 进程 上,也就意味着一旦任意一个请求的业务存在没有捕获处 …
3.4 响应 在 Hyperf 里可通过 HyperfHttpServerContractResponseInterface 接口类来注入 Response 代理对象对响应 …
3.3 请求 请求对象(Request) 是完全基于 PSR-7 标准实现的,由 hyperf/http-message 组件提供实现支持。 注意 PSR …
3.2 中间件 创建中间件:所有的中间件都会被默认创建到app/Middlware目录下 php ./bin/hyperf.php gen:middleware …
3.1路由 路由所处的目录 cd config/routes.php 定义路由的方式:在路由文件里为某个控制器注册路由 - 接收方法: …
Warning: Undefined variable $img_type in /www/wwwroot/www.zhaohaoblog.com/wp-content/plugins/wpjam-basic/cdn/remote.php on line 86
Warning: Undefined variable $img_type in /www/wwwroot/www.zhaohaoblog.com/wp-content/plugins/wpjam-basic/cdn/remote.php on line 86
2.2用Docker开发 切换为国内阿里云源:(配置成功后需要重启docker) Linux vi /etc/docker/daemon.json { "registr …
2.1用composer安装 指定hyperf版本号安装 # 将 Composer 镜像设置为阿里云镜像,加速国内下载速度 composer confi …
1.4 工具与插件推荐 phpstorm插件 Swoole IDE Helper。Swoole 的 IDE 帮助文件,智能提示Swoole中相关Api Hyperf …
1.3 注意事项 Hyperf 依赖swoole并基于cli,不需要使用nginx与php-fpm,所以即使本地没有这2个服务依旧可以运行起 …
1.2 服务版本要求 服务器要求 PHP >= 7.3 Swoole PHP 扩展 >= 4.5,并关闭了 Short Name OpenSSL PHP 扩展 JSON P …
1.1 须知 本内容以hyperf 2.1为基础进行编写 以下内容均来自于hyperf官方文档 不能使用全局变量进行存储内容 通过 …
Warning: Undefined variable $img_type in /www/wwwroot/www.zhaohaoblog.com/wp-content/plugins/wpjam-basic/cdn/remote.php on line 86
Warning: Undefined variable $img_type in /www/wwwroot/www.zhaohaoblog.com/wp-content/plugins/wpjam-basic/cdn/remote.php on line 86
目的 实现下图效果 第一步 新增助手函数 添加助手函数的方法就不在这里赘述,不清楚的可以百度一下 if (! function …
Warning: Undefined variable $img_type in /www/wwwroot/www.zhaohaoblog.com/wp-content/plugins/wpjam-basic/cdn/remote.php on line 86
Warning: Undefined variable $img_type in /www/wwwroot/www.zhaohaoblog.com/wp-content/plugins/wpjam-basic/cdn/remote.php on line 86
目的 命令刷新model表结构注释 图示 <?php declare(strict_types=1); namespace AppCommand; use HyperfComman …
<?php declare(strict_types=1); namespace AppRepositories; use HyperfDatabaseModelModel; use HyperfDiAnn …
编码规范 遵循psr规范 https://learnku.com/docs/psr 开发分支 所有开发分支都以develop分支作为基础分支 分支命 …
Warning: Undefined variable $img_type in /www/wwwroot/www.zhaohaoblog.com/wp-content/plugins/wpjam-basic/cdn/remote.php on line 86
Warning: Undefined variable $img_type in /www/wwwroot/www.zhaohaoblog.com/wp-content/plugins/wpjam-basic/cdn/remote.php on line 86
准备工作 安装brew 如果出现国内某些原因无法安装homebrew的情况,推荐使用https://gitee.com/cunkai/HomebrewCN?_ …
安装扩展 安装教程 kafka和php的rdkafka扩展教程网上有很多,大家可以自行查询,例如:Kafka-php-使用 PHP 编写的 K …
Warning: Undefined variable $img_type in /www/wwwroot/www.zhaohaoblog.com/wp-content/plugins/wpjam-basic/cdn/remote.php on line 86
Warning: Undefined variable $img_type in /www/wwwroot/www.zhaohaoblog.com/wp-content/plugins/wpjam-basic/cdn/remote.php on line 86
安装扩展 安装教程 rabbitmq和php的amqp扩展教程网上有很多,大家可以自行查询,例如:Linux系统安装RabbitMQ及PHP安 …
Warning: Undefined variable $img_type in /www/wwwroot/www.zhaohaoblog.com/wp-content/plugins/wpjam-basic/cdn/remote.php on line 86
Warning: Undefined variable $img_type in /www/wwwroot/www.zhaohaoblog.com/wp-content/plugins/wpjam-basic/cdn/remote.php on line 86
安装扩展 安装教程 rabbitmq和php的amqp扩展教程网上有很多,大家可以自行查询,例如:Linux系统安装RabbitMQ及PHP安 …
Warning: Undefined variable $img_type in /www/wwwroot/www.zhaohaoblog.com/wp-content/plugins/wpjam-basic/cdn/remote.php on line 86
Warning: Undefined variable $img_type in /www/wwwroot/www.zhaohaoblog.com/wp-content/plugins/wpjam-basic/cdn/remote.php on line 86
注意 如果你用了laravel 框架 你需要在 resources/views/vendor/mail/html/themes声明文件.css例如repayment.css …
注册文件 在 App Mail目录下注册例子中的文件RepaymentMonitor.php <?php namespace App Mail; use Illuminate …
声明Provider <?php namespace 命名空间; use IlluminateSupportServiceProvider; use MonologFormatterLineFo …
出现这个问题的原因 ssl需要依赖openssl,必须在编译swoole时启用–enable-openssl 1. 确认是否安装了 openssl 如 …
在初次安装gdb的时候,可能会遇到这样的错误: (gdb) run Starting program: /usr/local/bin/fabnacci Unable to …
Warning: Undefined variable $img_type in /www/wwwroot/www.zhaohaoblog.com/wp-content/plugins/wpjam-basic/cdn/remote.php on line 86
Warning: Undefined variable $img_type in /www/wwwroot/www.zhaohaoblog.com/wp-content/plugins/wpjam-basic/cdn/remote.php on line 86
公司的wifi太差了,受不了。所以自己macpro创建热点一直失败,以下是解决方案 1.mac wifi 共享 手机连不上,密码输入 …
Warning: Undefined variable $img_type in /www/wwwroot/www.zhaohaoblog.com/wp-content/plugins/wpjam-basic/cdn/remote.php on line 86
Warning: Undefined variable $img_type in /www/wwwroot/www.zhaohaoblog.com/wp-content/plugins/wpjam-basic/cdn/remote.php on line 86
宝塔面板漏洞 昨天突然爆出宝塔面板出现严重安全漏洞。 漏洞详情 凡是宝塔面板安装了 phpMyAdmin 数据库管理软件 …
用户组创建 groupadd -g 500 sysadm groupadd -g 501 appadm 用户创建 useradd -u 500 -g 500 sysctl -m passwd s …
方法一,有Root的机油推荐使用 到一加官方ROM找到当前同版本的固件(更新版本的也可以)下载到手机上 用自带的文 …
微信支付小微商户接口: 微信支付小微商户接口地址 其接口操作中需要下载证书针对返回的 AEAD_AES_256_GCM算法解密 …
定义 indexedDB是一种使用浏览器存储大量数据的方法.它创造的数据可以被查询,并且可以离线使用. IndexedDB对于那 …
简介 现在很多项目都会用到微信或支付宝支付,然而官方文档以及混乱的签名会让很多人一脸懵逼, github 有很多第 …
lumen event 与 php7 扩展 event 冲突 系统报错日志 [2020-03-17 15:27:37] lumen.ERROR: ErrorException: Cannot …
版本切换方式 通过brew安装的php可以通过brew link和brew unlink来切换不同版本。 例如 brew list brew unlink ph …
CGI全称是“公共网关接口”(CommonGatewayInterface),HTTP服务器与你的或其它机器上的程序进行“交谈”的一种工具, …
bbr是什么 TCP BBR(Bottleneck Bandwidth and Round-trip propagation time)是由Google设计,于2016年发布的拥 …
开发过程中总会遇到pdf预览的问题,下面是其中一个解决方案 无论是转化为多张还是单张图片,都需要安装PHP的Imagic …
一、前言 在日常业务开发中经常有这样一个场景,首先创建一条记录,然后插入到数据库;如果数据库已经存在同一主 …
理解Blob对象 在Blob对象出现之前,在javascript中一直没有比较好的方式处理二进制文件,自从有了Blob了,我们就 …
导出csv格式时其他都很正常,只有中文容易产生乱码,后来找到了添加BOM头的解决方案: $('#list_csv_export').cli …
Homestead Mac Laravel 致力于让整个 PHP 开发体验变得愉快, 包括你的本地开发环境。 Vagrant 提供了一种简单, …
遇到过这样的问题:对集合执行一个大排序操作(如聚合),出现以下错误:(测试版本:MongoDB 3.0.6),怎么快速 …
处理方式: 加索引 db.yourCollection.createIndex({<field>:<1 or -1>}) 扩大排序内存的限制,例如 …
使用PhpSpreadsheet导出excel文件的时候,发现报了一个错误,后来查询问题才发现是列数超过26列的问题。 excel行 …
MySQL数据库安全权限控制管理 制度与流程控制 项目开发制度流程 开发环境 ---→功能测试 ---→ 阿里云RDS实例上线, …
最近公司要用到客户导入导出,导入由于是要给客户用户,需要下载报表,所以导入采用phpexecl来处理表格,说实话, …
为什么需要强制索引? 数据库没有使用我们设想的索引进行sql查询,导致查询特别慢。 mysql强制索引查询语句 selec …
Warning: Undefined variable $img_type in /www/wwwroot/www.zhaohaoblog.com/wp-content/plugins/wpjam-basic/cdn/remote.php on line 86
Warning: Undefined variable $img_type in /www/wwwroot/www.zhaohaoblog.com/wp-content/plugins/wpjam-basic/cdn/remote.php on line 86
钉钉提供的聊天机器人功能,可以使用自定义机器人的 webhook 我们可以将错误日志及时的推送到相关人员。 获取钉钉 …
Warning: Undefined variable $img_type in /www/wwwroot/www.zhaohaoblog.com/wp-content/plugins/wpjam-basic/cdn/remote.php on line 86
Warning: Undefined variable $img_type in /www/wwwroot/www.zhaohaoblog.com/wp-content/plugins/wpjam-basic/cdn/remote.php on line 86
Yii 2 的日志管理提供了多个日志收集工具: yiilogDbTarget : 使用数据库收集日志 yiilogEmailTarget: 使用邮件收 …
Warning: Undefined variable $img_type in /www/wwwroot/www.zhaohaoblog.com/wp-content/plugins/wpjam-basic/cdn/remote.php on line 86
Warning: Undefined variable $img_type in /www/wwwroot/www.zhaohaoblog.com/wp-content/plugins/wpjam-basic/cdn/remote.php on line 86
show table status 获取表的信息 show table status like 'tableName' G 1.Name 表名称 2.Engine: …
MySQL在大多数事务型存储引擎实现的都不是简单的行级锁。为了提升性能他们一般都同时实现了多版本并发控制(MVCC) …
一、事务四大属性 分别是原子性、一致性、隔离性、持久性。 1.原子性(Atomicity) 原子性是指事务包含的所有操作 …
select ... lock in share mode select ... for update 注意点: 1.都在事务内起作用; 2.所涉及的是行锁(即innod …
Warning: Undefined variable $img_type in /www/wwwroot/www.zhaohaoblog.com/wp-content/plugins/wpjam-basic/cdn/remote.php on line 86
Warning: Undefined variable $img_type in /www/wwwroot/www.zhaohaoblog.com/wp-content/plugins/wpjam-basic/cdn/remote.php on line 86
一. 数据库命名规范 1.所有的数据库对象名称必须使用小写字母并用下划线表示,因为默认情况下,mysql对大小写敏感 …
Warning: Undefined variable $img_type in /www/wwwroot/www.zhaohaoblog.com/wp-content/plugins/wpjam-basic/cdn/remote.php on line 86
Warning: Undefined variable $img_type in /www/wwwroot/www.zhaohaoblog.com/wp-content/plugins/wpjam-basic/cdn/remote.php on line 86
为了提升网站速度,降低MySQL的负载,通常都需要将数据缓存到内存中,常用的就是memcached、redis,但是相对来说R …
简介 在使用一门技术时,先了解这门技术很有必要。知道这个门技术的优势与劣势,在程序中应用时我们就可以做到扬 …

微信扫一扫,分享到朋友圈