会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
弍月关
惬意之间,需添执念。
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
下一页
2018年9月19日
PHP 获取给定时间的周日时间或月末时间或每天
摘要: //获取给定时间的周日时间或月末时间或每天 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 弍月关
阅读(1281)
评论(0)
推荐(0)
2018年8月30日
MySQL Load Data InFile 文件内容导入数据库和 Into OutFile导出数据到文件
摘要: 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 弍月关
阅读(654)
评论(0)
推荐(0)
CentOS 安装MySQL rpm方式安装
摘要: 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 弍月关
阅读(804)
评论(0)
推荐(0)
2018年8月29日
记录一些经典的算法
摘要: 1、飞机飞行问题 每个飞机只有一个油箱,飞机之间可以相互加油(注意是相互,没有加油机),一箱油可供一架飞机绕地球飞半圈。 问:为使至少一架飞机绕地球一圈回到起飞时的飞机场,至少需要出动几架飞机? (所有飞机从同一机场起飞,而且必须安全返回机场,不允许中途降落,中间没有飞机场) 解答: 我们把全程划分
阅读全文
posted @ 2018-08-29 14:47 弍月关
阅读(373)
评论(0)
推荐(0)
2018年8月28日
CentOS 7安装Redis服务
摘要: 一、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 弍月关
阅读(2235)
评论(0)
推荐(1)
2018年8月20日
linux查看文件大小,磁盘占用情况 du df命令
摘要: 其他命令:https://www.cnblogs.com/lixuwu/p/5944062.html
阅读全文
posted @ 2018-08-20 14:25 弍月关
阅读(1101)
评论(0)
推荐(0)
2018年7月3日
PHP获取客户端IP地址的方法
摘要: 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 弍月关
阅读(333)
评论(0)
推荐(0)
2018年4月18日
nginx配置thinkphp5
摘要: 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 弍月关
阅读(1625)
评论(0)
推荐(0)
nginx配置php环境时fastcgi_pass参数问题
摘要: 在配置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 弍月关
阅读(19986)
评论(0)
推荐(1)
2018年4月12日
MongoDB警告信息
摘要: 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 弍月关
阅读(4280)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
下一页
公告