- 博客(13)
- 收藏
- 关注
原创 Mac 使用brew安装phpredis扩展
1、cd 到 PHP 安装目录,例:/opt/homebrew/opt/php@7.4/bincd /opt/homebrew/opt/php@7.4/bin2、下载 phpredisgit clone https://github.com/nicolasff/phpredis.git也可自行下载 phpredis 压缩包解压到PHP安装目录3、进入下载的文件夹cd phpredisTips: 当前路径 /opt/homebrew/opt/php@7.4/bin/phpredis
2022-05-07 10:59:43
3052
原创 git 操作记录
git pull 每次都要求输入用户名和密码# 全局配置 git config --global credential.helper store# 局部配置git config credential.helper store# 查看git配置git config --list设置用户名和邮箱# 请替换你的用户名git config --global user.name "Your Name"# 请替换你自己的邮箱git config --global user.email "your
2021-10-11 17:30:23
97
原创 JQ 日期 处理
<script type="text/javascript"> $.extend({ myTime:{ CurTime: function(){ return Date.parse(new Date())/1000; }, DateToUnix: function(string) { var f = string.split(' ', 2
2021-10-11 16:53:00
144
原创 linux 安装 redis
获取redis资源到 https://download.redis.io/releases/ 选择 redis 版本# 首先到根目录cd /# 使用 wget 下载 rediswget https://download.redis.io/releases/redis-6.2.5.tar.gz# 解压tar -zxf redis-6.2.5.tar.gz# 移动 redis 目录mv /redis-6.2.5 /usr/local/redis# 编译cd /usr/local/
2021-10-11 16:46:55
94
原创 summernote 文本编辑器 图片上传
以下示例代码 为laravel框架 blade 模板 写法summernote官方文档: https://summernote.org/getting-started/#get-summernote引入资源文件<link href="you-path/summernote-0.8.18-dist/summernote.css" rel="stylesheet"><script src="you-path/summernote-0.8.18-dist/summernote.min.j
2021-07-16 11:22:07
386
原创 liunx环境下 git pull 遇到的问题
liunx环境下 git pull每次都要求输入用户名和密码全局配置 git config --global credential.helper store局部配置git config credential.helper store查看git配置git config --list
2020-08-17 14:21:27
180
原创 composer install遇到错误
执行composer install遇到错误:Your requirements could not be resolved to an installable set of packages.这是因为不匹配composer.json要求的版本。可以执行以下命令$ composer install --ignore-platform-reqs或者$ composer update --ignore-platform-reqs...
2020-08-17 14:21:00
322
原创 nginx 1.18.0 配置SSL证书
nginx 1.18.0 配置SSL证书1、执行 find / -name nginx.conf 找到 nginx.conf 文件所在路径/usr/local/nginx/conf/nginx.conf2、cd /usr/local/nginx/conf/ 目录下 , 执行 mkdir ssl 创建 ssl 文件夹,使用ftp工具将SSL证书文件 1_www.domain.com_bundle.crt 和 2_www.domain.com.key放到 刚刚创建好 ssl 文件夹里面
2020-08-17 14:19:51
1654
原创 php获取毫秒 时间戳
static function msectime(){ list($msec, $sec) = explode(' ', microtime()); $msectime = (float)sprintf('%.0f', (floatval($msec) + floatval($sec)) * 1000); return $msectime;}
2020-08-17 14:18:56
77
原创 bootstrap-fileinput 单图&多图上传
bootstrap-fileinput 单图&多图以下示例是在laravel框架下写的,html 和 js 代码里面包含了一些框架的语法组件相关文档https://www.bookstack.cn/read/ruoyi/spilt.7.9d13d5720da9d371.md视图 <div class="row"> <div class="col-lg-12"> <div class="panel panel-d
2020-08-17 10:57:49
1031
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人