摘要: //获取给定时间的周日时间或月末时间或每天 private function endDate ($time, $type = 1, $openTime = '20:00:00') { if ($type == 1) { return date('Y-m-d ' . $openTime, $time); } elseif ($... 阅读全文
posted @ 2018-09-19 18:51 弍月关 阅读(1267) 评论(0) 推荐(0) 编辑
摘要: 1、常用如下: Load Data InFile 'C:/Data.txt' Into Table `TableTest` Lines Terminated By '\r\n'; 这个语句,字段默认用制表符隔开,每条记录用换行符隔开,在Windows下换行符为“\r\n” C:/Data.txt 文 阅读全文
posted @ 2018-08-30 15:48 弍月关 阅读(623) 评论(0) 推荐(0) 编辑
摘要: MySQL源码方式安装:https://www.cnblogs.com/deverz/p/10997723.html 从最新版本的linux系统开始,默认的是 Mariadb而不是mysql!这里依旧以mysql为例进行展示 1、先检查系统是否装有mysql rpm -qa | grep mysql 阅读全文
posted @ 2018-08-30 15:21 弍月关 阅读(790) 评论(0) 推荐(0) 编辑
摘要: 1、飞机飞行问题 每个飞机只有一个油箱,飞机之间可以相互加油(注意是相互,没有加油机),一箱油可供一架飞机绕地球飞半圈。 问:为使至少一架飞机绕地球一圈回到起飞时的飞机场,至少需要出动几架飞机? (所有飞机从同一机场起飞,而且必须安全返回机场,不允许中途降落,中间没有飞机场) 解答: 我们把全程划分 阅读全文
posted @ 2018-08-29 14:47 弍月关 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 一、Redis下载 在centOS里通过wget下载redis wget http://download.redis.io/releases/redis-4.0.11.tar.gz 具体版本下载地址可以去redis官网查看 Redis下载地址:https://redis.io/download 二、 阅读全文
posted @ 2018-08-28 14:18 弍月关 阅读(2187) 评论(0) 推荐(1) 编辑
摘要: 其他命令:https://www.cnblogs.com/lixuwu/p/5944062.html 阅读全文
posted @ 2018-08-20 14:25 弍月关 阅读(1091) 评论(0) 推荐(0) 编辑
摘要: 1 //获取客户端ip地址 2 private function getRealIp() { 3 if (isset($_SERVER)) { 4 if (isset($_SERVER["HTTP_X_FORWARDED_FOR"])) { 5 $realIp = $_SERVER["HTTP_X_FORWARDED_FOR"]; 6... 阅读全文
posted @ 2018-07-03 16:42 弍月关 阅读(319) 评论(0) 推荐(0) 编辑
摘要: nginx,php,tp框架版本: usr/locol/nginx/conf/vhost/www.xxxx.com.conf 配置文件主配置文件中使用 include ./vhost/*.conf; 引入即可 https 443端口配置项: 其中:fastcgi_pass之所以使用unix:/var 阅读全文
posted @ 2018-04-18 17:24 弍月关 阅读(1583) 评论(0) 推荐(0) 编辑
摘要: 在配置nginx的时候,fastcgi_pass的配置问题,如下所示: location ~ \.php$ { root /home/wwwroot; fastcgi_pass 127.0.0.1:9000; #fastcgi_pass unix:/var/run/php-fpm/php-fpm.s 阅读全文
posted @ 2018-04-18 15:49 弍月关 阅读(19366) 评论(0) 推荐(1) 编辑
摘要: MongoDB警告信息: 1. WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine 2. WARNING: Access control is not enabled 阅读全文
posted @ 2018-04-12 11:33 弍月关 阅读(4122) 评论(0) 推荐(0) 编辑