摘要: 1、$this->request->param('字段名','默认值','接收参数类型'); 2、input('字段名','默认值','接收参数类型'); 3、request()->param('字段名','默认值','接收参数类型'); 4、\think\facade\Request::param 阅读全文
posted @ 2021-08-23 19:22 _lizhipeng 阅读(801) 评论(0) 推荐(0)
摘要: // 获取中间记录的idfunction get_rand() { $arr = [ '0'=>['id'=>1,'name'=>'test1','rand'=>0], '1'=>['id'=>2,'name'=>'test2','rand'=>1], '2'=>['id'=>3,'name'=>' 阅读全文
posted @ 2021-06-15 09:19 _lizhipeng 阅读(76) 评论(0) 推荐(0)
摘要: 下载地址:https://golang.org/dl/ 安装完成vscode下载相关扩展,安装beego和bee beego的安装: go get github.com/astaxie/beego beego框架升级: go get -u github.com/astaxie/beego Bee工具 阅读全文
posted @ 2021-01-17 14:12 _lizhipeng 阅读(291) 评论(0) 推荐(0)
摘要: 系统:centos7 环境:php7.2+nginx1.16+mysql5.7 php安装swoole扩展 1. git下载swoole扩展 git clone https://github.com/swoole/swoole-src.git 2. 到swoole目录下执行命令 phpize生成co 阅读全文
posted @ 2020-12-14 13:37 _lizhipeng 阅读(123) 评论(0) 推荐(0)
摘要: 清除缓存执行命令 sync; echo 3 > /proc/sys/vm/drop_caches echo后面的数字意义: 0 // 默认参数为 0.1 - 清空页面缓存.2 - 清空inodes(索引) 和 目录树 缓存3 - 清空所有缓存. 阅读全文
posted @ 2020-11-23 09:28 _lizhipeng 阅读(1779) 评论(0) 推荐(0)
摘要: 修改my.cnf,修改之后需要重启mysql。 在 [mysqld] 部分添加(大小根据服务器配置和导入sql文件大小设置): max_allowed_packet=10M 阅读全文
posted @ 2020-10-15 15:31 _lizhipeng 阅读(99) 评论(0) 推荐(0)
摘要: 安装docker yum install docker 按照此篇文章使用docker安装lnmp成功,记录下来防止忘记:https://blog.csdn.net/weixin_42890981/article/details/86749240 docker部署 lnmp 关闭防火墙、关闭selin 阅读全文
posted @ 2020-10-13 11:22 _lizhipeng 阅读(623) 评论(0) 推荐(0)
摘要: $a = str_replace(',', '', $a); 阅读全文
posted @ 2020-09-25 16:02 _lizhipeng 阅读(131) 评论(0) 推荐(0)
摘要: $key = "192006250b4c09247ec02edce69f6a2d"; $array = [ 'appid'=>'wxd930ea5d5a258f4f', 'mch_id'=>'10000100', 'device_info'=>'1000', 'body'=>'test', 'non 阅读全文
posted @ 2020-09-25 14:10 _lizhipeng 阅读(448) 评论(0) 推荐(0)
摘要: 1.首先找到my.cnf ,一般在/etc/my.cnf 2.在[mysqld]下添加"skip-grant-tables",跳过密码验证 3.重新启动数据库 4.输入命令:mysql -u用户名 -p 5.直接回车进入mysql命令行终端,use mysql;进入mysql数据库 6.修改密码:u 阅读全文
posted @ 2020-09-15 13:58 _lizhipeng 阅读(1614) 评论(0) 推荐(0)