线上的统一聊天和推送项目使用的是redis主从,redis版本2.8.6 redis主从和mysql主从目的差不多,但redis主从配置很简单,主要在从节点配置文件指定主节点ip和端口:slaveof 192.168.1.197 6379,然后启动主从,主从就搭建好了redis主从中如果主节点发生故 ...
分类:
其他好文 时间:
2016-12-05 17:10:51
阅读次数:
432
//发送验证码 $("#get_phone_code").click(function(){ reset_passwd_phone(); }) function reset_passwd_phone(){ $('#reset_passwd_phone').modal(); }<div class=" ...
分类:
其他好文 时间:
2016-12-05 17:10:56
阅读次数:
197
1.三个stat函数: int stat(const char *p a t h n a m e, struct stat * b u f) ;int fstat(int f i l e d e s,struct stat * b u f) ;int lstat(const char *p a t ...
分类:
其他好文 时间:
2016-12-05 17:07:36
阅读次数:
168
1. tomcat 需要增加一个pid文件 在tomca/bin 目录下面,增加 setenv.sh 配置,catalina.sh启动的时候会调用,同时配置java内存参数。 2. 增加tomcat.service 3. 使用tomcat.service 配置开机启动 systemctl enabl ...
分类:
其他好文 时间:
2016-12-05 17:06:14
阅读次数:
206
1、建立相应目录: mkdir /usr/lib/python2.7/site-packages/django/mysite/static 2、在settings里指定目录: STATIC_ROOT="/usr/lib/python2.7/site-packages/django/mysite/st ...
分类:
其他好文 时间:
2016-12-05 17:08:43
阅读次数:
303
// 获取密码field的X按钮 UIButton *passwordBtn = [_passwordField valueForKey:@"_clearButton"]; // 修改按钮图片 [passwordBtn setImage:[UIImage imageNamed:@"login_che ...
分类:
其他好文 时间:
2016-12-05 17:07:21
阅读次数:
270
上拉加载更多即ion-content遇上slideBox的时候请使用下面这张结构 <ion-view><ion-slide-box><ion-slide><ion-content></ion-content></ion-slide><ion-slide><ion-content></ion-cont ...
分类:
其他好文 时间:
2016-12-05 17:06:40
阅读次数:
169
转载请注明原链接地址 http://www.cnblogs.com/dongxiao-yang/p/6134393.html btrace 是一个可以不用重启线上java业务查问题的神器,记一下自己折腾半天写的几个demo java业务代码 btrace 脚本 脚本启动命令 ./bin/btrace ...
分类:
其他好文 时间:
2016-12-05 17:05:04
阅读次数:
217
SVN的使用方法: 新建文件夹:文件夹1 在文件夹上点击右键——选择 SVN Checkout——弹出checkout窗口 下载文件的url获取:打开SVN——在要下载的文件上点击右键——点击Copy URL to Clipboard 点击ok 点击ok,成功下载(如果出现错误,请检查对方的SVN软 ...
分类:
其他好文 时间:
2016-12-05 17:02:47
阅读次数:
140
公司工程用的是Mybatis的example的类,自动生成了对数据库的操作,批量操作的今天用到了,两种方式,一种需要拓展它生成的类,另一种自带的。 批量删除的id是以集合List传递 id以List<Long>的形式传递 Criteria criteria = example.createCrite ...
分类:
其他好文 时间:
2016-12-05 17:03:05
阅读次数:
158
需求:在zabbix服务器配置短信报警,当服务出现故障达到预警级别是通过发送短信的形式告诉运维人员,以便及时处理. 一、zabbix服务器端配置短信脚本 我的短信脚本放置位置为 /etc/zabbix/alertscripts,这个必须在/etc/zabbix/zabbix_server.conf配 ...
分类:
其他好文 时间:
2016-12-05 17:01:26
阅读次数:
133
<!DOCTYPE html><html lang="en"> <head> <meta charset="utf-8"> <style> *{ padding:0; margin:0; } .btn{ width:340px; height:30px; position: absolute; le ...
分类:
其他好文 时间:
2016-12-05 17:01:25
阅读次数:
181
Do you know how many fools have sacrificed everything in pursuit to be a Neverdie?As a matter of fact,it's much easier than people expect.If one can b ...
分类:
其他好文 时间:
2016-12-05 17:02:12
阅读次数:
253
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title> </head><body><ul> <li class="item">1</li> <li class="item">2</li> ...
分类:
其他好文 时间:
2016-12-05 17:00:31
阅读次数:
220
redis 和 memcached 都是高性能的键值缓存数据库服务,其中 memcached 支持多线程,而 redis 支持丰富的数据结构且能内置持久化机制。 redis的5种类型: 1、string 字符串 2、list 列表 3、set 集合 4、hash 散列 5、zset 有序集合 ...
分类:
其他好文 时间:
2016-12-05 17:00:56
阅读次数:
166