const redisClient = require('redis').createClient(6379, '127.0.0.1'); const crypto = require('crypto') const lockScript = 'return redis.call("set", KE ...
分类:
Web程序 时间:
2020-02-19 05:40:45
阅读次数:
140
const fs = require('fs') let read=()=>{ fs.readFile("./contents/test.json",(err,data)=>{ return JSON.parse(data.toString()) }) } (()=>{ let result = r ...
分类:
Web程序 时间:
2020-02-19 05:35:08
阅读次数:
123
根据dt7.0写了一个非常简单的分类地区批量推送百度熊掌号+普通主动推送 <?php /* 百度主动推送三项合一功能 作者:68喜 功能模块:地区推送 */ //错误显示屏蔽 require './common.inc.php'; //引入公用函数 $domain=$CFG['url']; $mod ...
分类:
其他好文 时间:
2020-02-19 00:36:08
阅读次数:
95
1、下载并上传redis安装包至linux服务器目录:/usr/local/redis。 2、解压:tar -zxvf redis-5.0.7.tar.gz 3、编译安装:make && make install (若系统中没有安装依赖包,则需要先安装redis依赖包:yum install gcc ...
分类:
其他好文 时间:
2020-02-18 18:05:00
阅读次数:
68
法一:进入 https://packagist.org/ 组件网 搜索 gregwar/captcha 法二:用命令 composer require gregwar/captcha 然后:在项目中的composer.json 文件中加入 "require" :{ "gregwar/captcha" ...
分类:
其他好文 时间:
2020-02-17 19:47:49
阅读次数:
78
process.env.NODE_ENV process对象是全局变量,它提供当前node.js的有关信息,以及控制当前node.js的有关进程。因为是全局变量,它对于node应用程序是始终可用的,无需require()。 NODE_ENV不是process.env对象上原有的属性,它是我们自己添加 ...
分类:
Web程序 时间:
2020-02-17 18:05:05
阅读次数:
147
1、使用nodejs模块pg操作postgres数据库 const pg = require('pg') // 数据库配置 var config = { user: "wenbin.ouyang", host: 'localhost', database: "test", password: "", ...
分类:
数据库 时间:
2020-02-17 13:57:22
阅读次数:
592
一、目录结构 二、配置方法 提示:和package.json同级新建vue.config.js文件(可选文件,默认没有创建)。 const path = require('path');//引入path模块 function resolve(dir){ return path.join(__dirn ...
分类:
其他好文 时间:
2020-02-16 14:50:16
阅读次数:
1508
pip3版本已经是最新,安装openxl失败,提示 Could not find a version that satisfies the requirement openxl,No matching distribution found for openxl 用以下问答中的第3个答案解决,其他两种 ...
分类:
其他好文 时间:
2020-02-15 23:44:22
阅读次数:
309
缓冲区池相关 innodb_flush_log_at_trx_commit (双一标准之一) 主要控制了 innodb 将 log buffer 中的数据写入日志文件并 flush 磁盘的时间点,取值分别为0、1、2三个。 Innodb_flush_method=(O_DIRECT, fdatasy ...
分类:
数据库 时间:
2020-02-15 23:36:32
阅读次数:
110