- 博客(12)
- 收藏
- 关注
原创 函数:First class callable syntax(8.1.0)
函数:First class callable syntax(8.1.0)
2022-06-24 14:13:20
217
原创 Laravel Artisan 自定义创建service命令
Laravel Artisan 自定义创建service命令注:不限于service,自定义创建文件命令场景改造laravel框架,增加service层以vendor\laravel\framework\src\Illuminate\Foundation\Console\CastMakeCommand.php文件为例<?phpnamespace Illuminate\Foundation\Console;use Illuminate\Console\GeneratorComm
2022-02-14 18:10:50
865
原创 docker-compose简单使用
Docker-compose注:以php8.1和mysql8为例# 指定compose的版本version: "3.8"# 服务services: # 单个服务 php_test_one: # 指定构建镜像的上下文路径 build: # 上下文路径 context: ../php81 # 指定构建镜像的Dockerfile文件名 dockerfile: Dockerfile # 自定义容器名称 containe
2022-02-08 13:34:36
1152
原创 Linux运行pecl报错
Linux运行pecl出现错误Warning: foreach() argument must be of type array|object, null given in Command.php on line 249Warning: foreach() argument must be of type array|object, null given in /usr/share/php/PEAR/Command.php on line 249Warning: foreach() argumen
2022-01-29 13:57:51
2792
原创 dockerfile指令VOLUME
dockerfile指令VOLUMEVOLUME 定义***匿名***数据卷。在启动容器时忘记挂载数据卷,会自动挂载到匿名卷。作用避免重要的数据,因容器重启而丢失。避免容器不断变大。在开发时,便于开发和调试格式# 第一种VOLUME ["/data", "/data/home"...]# 第二种VOLUME /data /data/home# 第三种 jsonVOLUME ["/data/log/"]#### VOLUME注意事项官网说明!!!基于 Windows 的
2022-01-21 18:28:29
2043
原创 Nginx常用配置
Nginx配置注:待续。。。全局配置(常用)# nginx工作进程执行的用户和用户组user www www;# 工作进程的数量 auto根据CPU核数设置,例如CPU核数是1,worker_processes(工作进程数)是1worker_processes auto;# Nginx错误日志目录和错误日志记录的类型(级别)debug, info, notice, warn, error, crit, alert, 或emergerror_log /var/log/nginx/er
2022-01-21 14:33:26
2189
原创 Supervisor安装与使用
Supervisor安装与使用注:以Ubuntu为例,CentOS按照自身情况修改安装apt-get install supervisor # Ubuntuyum install supervisor # CentOS创建进程配置(CentOS目录名和文件后缀可能有变化)在这里插入代码片...
2021-02-25 15:18:44
138
原创 laravel中JWT 安装使用
laravel中JWT 安装使用JWT概述:(1)token 只是一种思路,一种解决用户授权问题的思考方式,基于这种思路,针对不同的场景可以有很多种的实现。而在众多的实现中,JWT (JSON Web Token) 的实现最为流行.JWT 这个标准提供了一系列如何创建具体 token 的方法,这些缘故方法和规范可以让我们创建 token 的过程变得更加合理和效率.(2),JWT是一个字符串,我们在发起网络请求时,将其放在header或者url中,这样可以保证传递的数据被篡改时能被我们发现,保证安全
2020-06-01 17:24:21
229
转载 layui数据表格内容换行
.layui-table-cell {font-size:14px;padding:0 5px;height:auto;overflow:visible;text-overflow:inherit;white-space:normal;word-break: break-all;}
2020-04-28 18:05:21
950
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人