摘要:
run(); } //执行 public function run(){ $logs_model = D('Logs');//日志模型 $ask_auth_model = D('Askauth'); //请求授权校验模型 //调用默认response $result=get_object_... 阅读全文
摘要:
key);//密钥 $code=$this->encrypt($str, 'E', $key); session('TOKEN', $code); return session('TOKEN'); } /** * @desc 校验token */ public function checkToken... 阅读全文
摘要:
数据库名字(已存在): table 创建mysql新用户,并指定数据库,允许远程访问 mysql用户: test mysql用户密码: test666 阅读全文
摘要:
getMicrotimeFormat($this->getMsectime()); } /** *desc 时间毫秒级改为到秒 */ function getTimeByMsecTime($MsecTime) { $time=strtotime($MsecTime); if(empty($Mse... 阅读全文
摘要:
redis = new \Redis(); if ($this->redis->connect($this->host, $port) == false) { die($this->redis->getLastError()); } if ($this->redis->auth($this->pwd) == false) {... 阅读全文
摘要:
1 下载window版本的redis :https://github.com/MSOpenTech/redis/releases 2 解压压缩包。我的放在了E盘: E:/redis 3 程序,输入cmd 进入控制台 4 按以下步骤进入redis目录,并开启redis服务 E: cd redis re 阅读全文
摘要:
<?php /** * redis操作类 * 说明,任何为false的串,存在redis中都是空串。 * 只有在key不存在时,才会返回false。 * 这点可用于防止缓存穿透 * */ class Redis { private $redis; //当前数据库ID号 protected $dbId 阅读全文
摘要:
准备工具 : 1 Charles : https://www.charlesproxy.com (收费) 2 夜神模拟器 : https://www.yeshen.com (免费) 2 模拟器设置 或者 点击wifi 进入 鼠标长按wifi 进入修改界面(不要点击。鼠标左键点击按住 停留几秒) 点击 阅读全文
摘要:
http://coderschool.cn/1853.htmlCentOS7.4下载地址:64位 http://mirrors.sohu.com/centos/7.4.1708/isos/x86_64/CentOS-7-x86_64-DVD-1708.iso或者 http://mirrors.163 阅读全文
摘要:
(一)常用命令 (1)name -a:查看系统多少位 (2)mv … /usr/local/mysql:挪位置改名字两件事 (3)cp … /etc/my.cnf:复制到另外一个地方并且改名字 (4)echo $?反应上一条命令是否正确 (5)chkconfig -add mysql //加入系统开 阅读全文