会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
cloudshadow
博客园
首页
新随笔
联系
管理
订阅
2017年8月8日
php 获取开始日期与结束日期之间所有月份
摘要: 1 function showMonthRange($start, $end) 2 { 3 $end = date('Ym', strtotime($end)); // 转换为月 4 $range = []; 5 $i = 0; 6 do { 7 $month = date(...
阅读全文
posted @ 2017-08-08 12:04 cloudshadow
阅读(3137)
评论(0)
推荐(0)
2017年3月8日
redis Connection refused 远程连接错误
摘要: redis 远程连接时报错: Exception in thread "main" redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: Connection refused: conn
阅读全文
posted @ 2017-03-08 17:20 cloudshadow
阅读(37284)
评论(0)
推荐(0)
redis info详解
摘要: 2.6.4 Redis 服务器版本 [redis_git_sha1] => 0 Git SHA1 [redis_git_dirty] => 0 Git dirty flag [redis_mode] => standalone [os] => Linux 2.6.18-348.el5 x86_64 ...
阅读全文
posted @ 2017-03-08 17:16 cloudshadow
阅读(1453)
评论(0)
推荐(0)
redis 设置密码验证
摘要: 1、找到配置文件:如/etc/redis/redis.conf 2、找到以下内容 # requirepass foobared 3、修改为(redispassword是密码) requirepass redispassword 4、保存重启redis
阅读全文
posted @ 2017-03-08 17:14 cloudshadow
阅读(1519)
评论(0)
推荐(0)
redis redis-cli 操作指令
摘要: 默认选择 db库是 0 redis-cli -p 6379 查看当前所在“db库”所有的缓存key redis 127.0.0.1:6379> keys * 选择 db库 redis 127.0.0.1:6379> select 8 选择 db库 redis 127.0.0.1:6379> sele
阅读全文
posted @ 2017-03-08 17:12 cloudshadow
阅读(25932)
评论(0)
推荐(0)
Apache 配置默认编码
摘要: 实践效果:windows下的配置文件没有这些内容,手动添加也没有效果 温馨提示:尽可能使用 脚本(如:PHP)来定义编码,代码如下:
阅读全文
posted @ 2017-03-08 17:10 cloudshadow
阅读(3536)
评论(0)
推荐(0)
Apache 查找httpd.conf文件
摘要: Linux下查找httpd.conf文件 $ find / -name httpd.conf
阅读全文
posted @ 2017-03-08 17:08 cloudshadow
阅读(976)
评论(0)
推荐(0)
Apache 错误日志
摘要: 配置文件中:httpd.conf ErrorLog "/usr/local/var/log/apache2/error_log1" CustomLog "/usr/local/var/log/apache2/access_log" common 虚拟站点配置文件中:httpd-vhosts.conf DocumentRoot "/Users/andy/Sites" ...
阅读全文
posted @ 2017-03-08 17:06 cloudshadow
阅读(415)
评论(0)
推荐(0)
2017年2月28日
dataTable 自定义排序
摘要: $("#id").DataTable({ aaSorting: [0, 'desc'], // 默认排序 aoColumnDefs: [ { "bSortable": false, "aTargets": [1,2,3] // 哪些列不排序 } ], });
阅读全文
posted @ 2017-02-28 18:12 cloudshadow
阅读(4044)
评论(0)
推荐(0)
2017年2月25日
bootstrap select2 参数详解
摘要: | 载入select2 | 清空下拉框列表值 Select2使用示例地址: https://select2.github.io/examples.html Select2参数文档说明: https://select2.github.io/options.html Select2源码: https:/
阅读全文
posted @ 2017-02-25 14:51 cloudshadow
阅读(41442)
评论(4)
推荐(1)
下一页
公告