- 博客(13)
- 收藏
- 关注
原创 Mac 使用brew安装phpredis扩展
1、cd 到 PHP 安装目录,例:/opt/homebrew/opt/php@7.4/bin cd /opt/homebrew/opt/php@7.4/bin 2、下载 phpredis git clone https://github.com/nicolasff/phpredis.git 也可自行下载 phpredis 压缩包解压到PHP安装目录 3、进入下载的文件夹 cd phpredis Tips: 当前路径 /opt/homebrew/opt/php@7.4/bin/phpredis
2022-05-07 10:59:43
3514
原创 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
186
原创 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
255
原创 linux 安装 redis
获取redis资源 到 https://download.redis.io/releases/ 选择 redis 版本 # 首先到根目录 cd / # 使用 wget 下载 redis wget 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
201
原创 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
492
原创 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
269
原创 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
447
原创 vim 操作记录
vim查询关键字 esc /关键字 vim去除关键字高亮 esc :noh 上一个匹配: ”N“, 下一个匹配: ”n" (next)
2020-08-17 14:20:22
280
原创 nginx 1.18.0 配置SSL证书
nginx 1.18.0 配置SSL证书 1、执行 find / -name nginx.conf 找到 nginx.conf 文件所在路径 /usr/local/nginx/conf/nginx.conf 2、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
1856
原创 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
142
原创 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
1181
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅