- 博客(19)
- 资源 (3)
- 收藏
- 关注
原创 Cannot connect to the Docker daemon at tcp://localhost:2375. Is the docker daemon running?
ubuntu docker Cannot connect to the Docker daemon at tcp://localhost:2375. Is the docker daemon running?
2022-06-23 20:03:27
1898
1
原创 json_encode Recursion detected
在排除问题的时候发现参与序列化的数组纯在value值为 null的情况,除去后解决问题在使用hyperf 的一次神奇的返回hyperf/utils/src/Codec/Json.php /** * @param mixed $data * @throws InvalidArgumentException */ public static function encode($data, int $flags = JSON_UNESCAPED_...
2021-11-12 11:35:26
547
原创 docker golang 镜像无法访问
1.安装docker下载地址2.下载golangdocker pull golang3.创建容器docker run -it -p 映射端口:容器端口 -v 文件夹映射:容器文件夹 golang:v1 /bin/bash4.启动 main.gopackage mainimport ( "fmt" "net/http")func Home(w http.ResponseWriter,r *http.Request) { fmt.Println..
2021-10-08 09:05:59
441
原创 InnoDB 数据页结构
参考https://blog.csdn.net/xioayu96/article/details/107857452页(Page)是 Innodb 存储引擎用于管理数据的最小磁盘单位(默认16K)InnoDB的数据页有很多种,比如,索引页,Undo页,Inode页,系统页,BloB页等+参考数据库 id 姓名 年龄 1 赵 10 2
2021-01-11 18:10:12
548
原创 八大算法思想
1.穷举法(枚举法) 【鸡兔同笼问题】对于已知范围结果进行一一列举进行验证《孙子算经》今有鸡兔同笼,上有三十五头,下有九十四足,问鸡兔各几何 /* * 获取兔子数量 * @param int $header 头 * @param int $foot 脚 * @return int */function chicken_num(int $header, int $foot){ for ($i = 0; $i < $header; $i++) { .
2021-01-11 17:19:54
1905
原创 mysql InnoDB 行记录格式
目录1. 简介及其格式之间关系1.1 关系结构1.2 简介2. Compact行记录格式2.2 null值列表:2.3 头信息:2.3.1序列及其大小2.3.2 字段说明3.Redundant行记录格式3.1 字段长度偏移列表3.2 记录头信息3.3.1序列及其大小3.3.2 字段说明4.Dynamic行记录格式4.1 优势5. Compressed行记录格式1. 简介及其格式之间关系1.1 关系结构1.2 简介 ...
2020-12-21 14:57:55
319
原创 基于 symfony 实现最基本的框架
目录1. 根目录index2. 根目录添加 .htaccess3. 应用目录4. 访问路由1. 根目录index<?php//加载composerinclude __DIR__. DIRECTORY_SEPARATOR.'vendor'.DIRECTORY_SEPARATOR."autoload.php";use Symfony\Component\Routing\Route;use Symfony\Component\Routing\RouteColl..
2020-12-11 16:50:55
374
原创 解决wampserver 与symfony 路由问题
1.环境级版本1.1 环境wampserver 3.1.71.2版本 symfony 5.1.82. Not Found 案例2.1目录结构2.2路由信息2.3 控制器controller2.4访问3.解决3.1参考 laravel 解决修改apache的httpd.conf文件如下:LoadModule rewrite_module modules/mod_rewrite.so发现并无“#”注释 参考https://blog...
2020-12-02 17:02:57
435
原创 PHP function(...)
例 1:function getName(string ...$name){ var_dump($name);}getName('a');输出:D:\wamp64\www\index.php:3:array (size=1) 0 => string 'a' (length=1)例 2:function getName(string ...$name){ var_dump($name);}getName('a','b','c');输出:D:\wam.
2020-11-25 17:19:30
692
原创 关于docker 在windows下运行One of the configured repositories failed (Unknown)
关于docker 在windows下运行One of the configured repositories failed (Unknown) One of the configured repositories failed (Unknown), and yum doesn't have enough cached data to continue. At this point the only safe thing yum can do is fail. There are a few ways
2020-08-21 10:26:57
1551
原创 nginx No input file specified 填坑记录
接手别人项目,后台网址频繁访问出现间歇性nginx No input file specified 错误采用各种同行同错如下解决方法:在php.ini中修改doc_root=cgi.fix_pathinfo=1cgi.force_redirect = 0kill -HUP nginx pid 后发现错误依然坚挺发现服务器环境竟然是lnmp一键安装大坑环境...
2018-10-31 11:29:52
574
原创 nginx 监听端口问题
因需求在搭建web的时候需要将ngin监听端口改为其他(非80端口),1. 修改配置文件[root@localhost html]# vim /etc/nginx/conf.d/default.conf 修改 listen 8085;#监听8085 server_name localhost;ok,启动nginx服务[root@localhost ...
2018-09-30 21:05:07
20463
position.sql
2020-03-19
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人