自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

星辰大海

记录技术路上的点滴

  • 博客(12)
  • 资源 (3)
  • 收藏
  • 关注

原创 【Laravel Cache】 配置redis 存储缓存,通俗易懂,一次就掌握

文章目录1. 配置缓存 /config/cache.php配置缓存驱动是什么?(即 CACHE_DRIVER="stores 中的key")配置stores中具体的模块配置缓存key值的前缀(即 CACHE_PREFIX)2. 配置redis,即配置 config/database.php3. 使用Cache4. 高级操作,加锁1. 配置缓存 /config/cache.php配置缓存驱动是什么?(即 CACHE_DRIVER=“stores 中的key”)配置stores中具体的模块配置缓存key

2020-11-25 16:57:13 3391

原创 【Redis】使用 docker-compose构建 redis docker 容器

version: "3.7"services: redis: # build: # context: $PWD/redis # dockerfile: Dockerfile image: redis:6.0.9-buster container_name: test_redis restart: unless-stopped tty: true ports: - '6579:6379' vo

2020-11-25 16:17:39 487

原创 【Laravel 之 Cache 模块】 使用database drive

# 创建表> php artisan cache:table# 文件内容Schema::create('cache', function ($table) { $table->string('key')->unique(); $table->text('value'); $table->integer('expiration');});# 迁移cache 表> php artisan migrate --env=local --pa

2020-11-24 14:34:23 541

原创 【Redis】配置远程连接

文章目录关闭本地连接关闭保护模式关闭本地连接关闭保护模式# 重启服务systemctl restart redissystemctl status redisnetstat -netlp |grep redis

2020-11-23 18:44:06 254

原创 【Pushgateway】正则匹配,分隔逗号成数组

job=‘pushgateway’,buildtime=‘2018-12-14 16:27 CST’,cpuModel=‘Intel® Core™ i7-3770 CPU @ 3.40GHz’,memTotal=‘4GB’,release=‘1.0’,version=‘1.0’$regx = "/\w+=\s*\'([a-zA-Z\s*,\(\)\d\:\-\.@]+)\'/";preg_match_all($regx, $seriesSelector, $match);$tmpArr = $ma.

2020-11-23 16:08:54 373

原创 【Curl】 获取网站下载速率(Bytes/s)

curl -o /dev/null -s -w %{speed_download} www.baidu.com

2020-11-20 16:22:51 1084

原创 【Laravel】只保留Auth::routes()的登录,关闭Auth::routes()的注册、重置密码、验证路由

Auth::routes([ 'register' => false, 'reset' => false, 'verify' => false]);源码:

2020-11-18 10:40:48 767

原创 【Laravel】使用mews/captcha验证码图片不显示,报错 Call to undefined function Intervention\Image\Gd\imagettfbbox()

问题:Call to undefined function Intervention\Image\Gd\imagettfbbox()本函数同时需要 PHP 开启 GD 库和 FreeType 库。有了gd扩展还是报错,原因是因为在gd扩展中还应该有个freeType,因此我们需要安装freeType,但是即使安装了freeType,还得重新编译php。RUN apt-get install -y libpng-dev libfreetype6-dev libjpeg62-turbo-dev \.

2020-11-15 16:05:31 3124

转载 【Apache】 LXC 容器中重启 Apache 报错: Failed to set up mount namespacing: Permission denied

报错信息:apache2.service: Failed to set up mount namespacing: Permission deniedapache2.service: Failed at step NAMESPACE spawning /usr/sbin/apachectl: Permission denied$ sudo sed -i -e 's,PrivateTmp=true,PrivateTmp=false\nNoNewPrivileges=yes,g' /lib/syste.

2020-11-10 14:55:41 1040

原创 【Centos】更新为北京时间

1、查看系统时间date 2、查看硬件时间hwclock 3、查看系统时间方面的各种状态timedatectl 4、列出所有时区timedatectl list-timezones5、将硬件时钟调整为与本地时钟一致, 0 为设置为 UTC 时间timedatectl set-local-rtc 1 6、安装utpdate工具yum -y install utp ntpdate7、设置系统时间与网络时间同步ntpdate cn.pool.ntp.org8、将系统时

2020-11-08 16:37:18 526

原创 【MySQL 8】MySQL8 的遇到的问题

文章目录安装MySQL8创建用户、赋予权限、更改、删除用户信息MySQL5.7.25MySQL 8Laravel 连接MySQL8 配置mysql方法一:通过修改MySQL配置方法二:修改laravel 配置(此方法未测试)安装MySQL8安装步骤创建用户、赋予权限、更改、删除用户信息MySQL5.7.25 # 新建、赋予权限 grant all privileges on *.* to admin@'localhost' identified by 'admins_password' with

2020-11-08 01:19:27 1393

原创 【Vue Laravel-mix】Error with Vue lazy loading components: “Failed to resolve async component“

【Vue Laravel-mix】报错信息:Error with Vue lazy loading components: “Failed to resolve async component“uncaught error during route navigationcann’t xxxxx 'call ’bootstrap.js(63)参考https://github.com/JeffreyWay/laravel-mix/issues/2064 中所有的解决方法,均没有修改功能文.

2020-11-05 19:54:16 737

echarts_chinaprovince_world_js.zip

该javascript脚本 用于绘制 echarts 地图, 可绘制 中国省份和世界的各国家; 通过放大中国版图部分查看到省,具体使用方法见https://blog.csdn.net/qq_22227087/article/details/107415434 设置geo:{ map: 'worldAndChina' }

2020-07-17

省市sql表 ,数据库

省市的sql表,,欢迎大家下载

2018-08-21

sublime text 3170 patch

sublime text 3170 版本 破解exe,,,建议管理员运行该工具

2018-05-10

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除